Calling Functions

InstallShield 2023

All functions—whether user-defined, built-in, Sd, or external—are called in the same way. Type the name of the function, followed by the parameters that you want to pass to the function. For example:

MyFunction (MyAge, MyHeight, MyWeight);

Note:InstallScript functions do not allow you to pass an assignment statement as a parameter. In addition, you cannot use the && or || operators within an argument to a function.

An autosized string variable that is passed by reference to a function is not autosized within the called function. If the function attempts to assign a value whose length is greater than the current size of that parameter, run-time error 401 occurs. To avoid this error, declare strings with a specific size when they are to be passed by reference to a function.

See Also