ph_macroparm PowerHome formula function
Description
Plays a PowerHome macro and passes 5 optional parameters.
Syntax
ph_macroparm ( s, a, a, a, a, a )
Argument Description
s A string identifying the ID of the macro you wish to play.
a Any data type that will be passed to LOCAL1.
a Any data type that will be passed to LOCAL2.
a Any data type that will be passed to LOCAL3.
a Any data type that will be passed to LOCAL4.
a Any data type that will be passed to LOCAL5.
Return value
Integer. Returns a 0 if the macro is successfully played. A 1 signifies that no rows exist in the macrodetail table. A 2 is returned if you try to play the special macros ‘PLAYSLOTTRACK’ or ‘PLAYPLAYLIST’. A 3 is returned if an infinite loop condition is detected.
Usage
The passed parameters are copied into the system variables LOCAL1 thru LOCAL5. Any valid data type can be passed in these values. All data types are first converted to type string before being stored in the system variables. You must specifiy a valid data type for each parameter. If you do not wish to pass data for a particular parameter then just pass either "" or 0.