Small Basic Reference Documentation: Program Object
Small Basic: Reference Documentation > Program
http://smallbasic.com/img/object_32.png
Program
The Program class provides helpers to control the program execution.
Properties
http://smallbasic.com/img/property_16.png ArgumentCount (This property is read-only.)
Program.ArgumentCount
Gets the number of command-line arguments passed to this program.
http://smallbasic.com/img/property_16.png Directory (This property is read-only.)
Program.Directory
Gets the executing program's directory.
Operations
http://smallbasic.com/img/method_16.png Delay
Program.Delay(milliSeconds)
Delays program execution by the specified amount of MilliSeconds.
milliSeconds
The amount of delay.
Returns
Nothing
http://smallbasic.com/img/method_16.png End
Program.End()
Ends the program.
Returns
Nothing
http://smallbasic.com/img/method_16.png GetArgument
Program.GetArgument(index)
Returns the specified argument passed to this program.
index
Index of the argument.
Returns
The command-line argument at the specified index.
See Also
- Small Basic: Reference Documentation
- The Developer’s Reference Guide to Small Basic
- Wiki: Small Basic Portal