Using structures with functions

You can pass structures as arguments in user-defined functions. Simply name the structure as the datatype when defining the argument. Similarly, user-defined functions can return structures. Name the structure as the return type for the function.

You can also define external functions that take structures as arguments.

Example Assume the following:

You can call the function as follows:

Revise(lstr_empdata)

NoteDeclare the function first The external function must be declared before you can reference it in a script.

For more about passing arguments to external functions, see Application Techniques.