Skip to content

Class: cCommandLine

Include: Use System\Application.pkg

Hierarchy: cObject -> cCommandLine

Package: System\Application.pkg

cCommandLine stores process arguments and provides count and indexed access helpers.

Properties

See Properties.

Name Purpose
paArguments Captured command-line argument array.

Methods

See Methods.

Name Purpose
CountOfArgs Returns argument count.
Argument Returns argument text by zero-based index.

Example

Handle hoCommandLine
Integer iCount
String sFirst
Get phoCommandLine of ghoApplication to hoCommandLine
Get CountOfArgs of hoCommandLine to iCount
If (iCount > 0) Get Argument of hoCommandLine 0 to sFirst

See also