Syntax
Public Function RunScript(chartIndex As Integer, ScriptName As String) As Boolean
Description
This function is used to run a VTL client script on a specific chart by the script name.
Parameters
Key | Description |
chartIndex | The chart position on the chart windows. 0 means the current chart, a value of type Integer |
ScriptName | The VTL client script name that wants to run, a value of type String. |
Return value
Returns true if the script runs, otherwise returns false.
Sample
Public Sub main() Dim res res = RunScript(2,ScriptName) msgbox Res End Sub
See Also