Share via


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

Program.Delay(milliSeconds)

Delays program execution by the specified amount of MilliSeconds.

milliSeconds

The amount of delay.

Returns

Nothing

Program.End()

Ends the program.

Returns

Nothing

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