Skip to content

phoCommandLine - cApplication

Holds the object-handle of the embedded cCommandLine object

Type: Property
Access: Read/Write
Data Type: Handle
Parameters: None

Syntax

Property Handle phoCommandLine
Access Type Syntax
Read Access: Get phoCommandLine to HandleVariable
Write Access: Set phoCommandLine to HandleVariable/Value

Description

An instance of cCommandLine is encapsulated within this class to handle all aspects of the program's command-line arguments. When you need to communicate with this object (to retrieve command-line arguments, for example), use this property to acquire its object handle.

Sample

Get phoCommandLine Of ghoApplication To hoCommandLine
If (hoCommandLine > 0) Begin
    Get CountOfArgs Of hoCommandLine To iArgs
End
Col 1 Col 2
Note: Primarily, this is a read-only property. However, if you were to create your own commandline object to replace the internal one, you could assign its object-handle to this property.

See Also

cCommandLine