ISProfile.CallMacro

Description

This function calls macro.

Syntax

object.CallMacro(aMacroName[, aTimeOut = 10000[, aNewEnvironment = false]])

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aMacroName In, Required
string
The name of the macro
aTimeOut In, Optional
Default value is 10000
int
The limit for the server macro execution time
aNewEnvironment In, Optional
Default value is false
bool
The new environment of the macro

Return Value

object

This function returns the string value computed by the macro.

Example

Run the macro and display the computed result.

Dim aMacroName
Dim aTimeOut
Dim aNewEnvironment

aMacroName = "MyMacro"
aTimeOut = 10000 'ms
aNewEnvironment = false

Profile.CallMacro aMacroName, aTimeOut, aNewEnvironment
Note:

Version information

Added in v7.8.0
return type changed from void to object in v7.8.0