QueueMacro

This function is used to queue Data Transaction macros and pass any required parameters. It returns the sequence number of the macro after it has been successfully queued. These macros can be created on the Transactions tree.

Group:  Transaction Management

Syntax:  [nSeq =] TM.QueueMacro(sMacroName, [vParams])

nSeq             (Long) Optional – the sequence number of the macro after it has been successfully queued.

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

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

Example:

Dim nSeq As Long

nSeq = TM.QueueMacro("ChangeUser", "Sam", "1234")