#### Example 1: Using the Function Line to Pass Variables

The following command will execute a BASIC script named TEST.BAS. It will also, upon execution, pass the variables defined from the FUNCTION/ line into the TEST.BAS script:

CS2=SCRIPT/FILENAME= D:\PROGRAM FILES\PCDMIS35\TEST.BAS
FUNCTION/ShowVars,SHOW=YES,ARG1=3,ARG2="Hello",ARG3=2.5,,
STARTSCRIPT/

ENDSCRIPT

Now here's the TEST.BAS script; on execution it will display the passed in variables in their respective message boxes:

Sub ShowVars(IntVar As Integer, StrVar As String, DoubleVar As Double)

msgbox "The passed integer variable is " & IntVar

msgbox "The passed string variable is " & StrVar

msgbox "The passed double variable is " & DoubleVar

End Sub