CallMacro

This function is used to call a screen mapping or transaction macro and pass the macros required parameters. Using this function gives you the ability to “store-and-forward” transactions while the host is off-line for backup or other reasons. It returns ‘True’ if the macro was successfully completed.

Group: Server Extensions


Syntax: [enOK =] Server.CallMacro(sMacroName, bQueueOffline, [vParams])

enOK                (enMacroResults) Optional – Returns 1 of the following 4 values:

MacroFailed
MacroNotProcessed
MacroQueued
MacroSucceeded

sMacroName     (String) – This is the name of the macro to be called.

bQueueOffline   (Boolean) – This determines whether the macro can be queued for later processing if the host is not currently available.

vParams           (Variant) – Optional: A series of passing parameters as required by the selected macro. Note: these parameters are the fields you defined when you record the macro.

Example:

Dim bOK As enMacroResults

bOK = Server.CallMacro("PICK", True, "Sam", "12")

Supported Versions:       RFgen 4.0 and newer.