Macro Scheduler 15

VBEND

VBEND

 

Not supported in Macro Scheduler Lite.

 

Marks the end of a block of VBScript code.  Macro Scheduler reads from VBSTART to VBEND and stores the VBScript code between the two markers for later execution by the VBRun, or VBEval commands.

 

If you wish to evaluate VBScript expressions in your scripts you will need a VBSTART/VBEND block at the start of your script even if it contains no code.

 

See also: VBEval, VBRun, VBSTART

Links to VBScript Documentation: http://www.mjtnet.com/resources.htm

 

Example

 

VBSTART

 

Function MultiplyNums (d,a)

  MultiplyNums = d * a

End Function

 

Sub DisplayMessage (msg)

  MsgBox msg

End Sub

 

Function GetName

  GetName = InputBox("Enter Your Name : ")

End Function

 

VBEND

 

Let>a=5

VBEval>MultiplyNums(%a%,2),answer

MessageModal>answer

 

VBRun>DisplayMessage,Hello World

 

VBEval>GetName,name

MessageModal>Your Name is : %name%