FEATURE RICH
RAPID APPLICATION DEVELOPMENT
HELPING YOU OR YOUR CUSTOMERS
MANAGE THEIR BUSINESS

<-- Back to Commands (Program Flow)

{FUNCTION(name, p1, p2...)}

You can use this command to declare a function to be used later.

The function name should always be in upper case.

You can then call the function as if it were a standard UDB command {NAME(p1, p2)}

Any parameters passed in will be assigned to UDB Variables of the same name.

By default, the function will return anything that is output during the function process but you can override this by using the {RETURN(value)} command. This will not stop execution, just instruct the code to return that value when it finishes.

Note:

This command requires an {END_FUNCTION} command.

Parameters
Number Name Default Type Description
1 name String Funtion Name
Log in to add a Comment.