General Commands SECTION 6 Functions and Methods
57
pointname = Rand(upperlimit)
Remarks
Typical Example
randomnumber = Rand(upperlimit)
A random integer in the range 0 to upperlimit is returned and contained in the
point 'randomnumber'. Maximum upperlimit is 32767.
6-3-6 RunApplication
Description
Requests the operating system runs a new program. It will run in a separate
process and RunApplication does not wait for the application to be launched.
The specified filename must be executable i.e. have an extension of .EXE,
.COM or .BAT.
Syntax
returnstate = RunApplication("executable")
Remarks
Typical Example
RunApplication("c:\myprog.exe")
The executable file c:\myprog.exe is run.
6-3-7 RunHelp
Description
Invokes the Windows Help engine and loads a help file, showing a specific
topic number.
Syntax
returnstate = RunHelp("helpfile",helpindex)
Remarks
Argument Type Description
upperlimit integer The maximum negative or positive integer
value that the Rand function can generate.
pointname Integer
point
Point that contains the integer returned from
the Rand function.
Note: If 'upperlimit' is negative then the range is 0 to the negative number.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
executable string Pathname of executable file.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
helpfile string Pathname of helpfile to be run.
helpindex integer Index into a help topic as defined by the help
file being run.