1217663 - How to create a Custom Function in Crystal Reports?

Local NumberVar y := Year(myDate) + 10;
Local NumberVar m := Month(myDate);
Local NumberVar d := Day(MyDate);

    1. Once you completed writing your code, click on "Save and Close"
    2. Now, create a new Formula, and use the new function created. For example, the formula will look like:

      myFunctionName();
    3. Save and close the formula.
    4. Insert the formula on the report to display the value.

    Keywords

    FORMULA CUSTOM FUNCTION EXTRACTOR WORKSHOP EXTRACT Crystal Reports Repository Custom functions Use extractor , KBA , BI-RA-CR , How To