Syntax
CmdArgArgV( ) --> cProgramArguments
None.
Return value
The first word of the command line: the program as the user or the system started it.
Description
CmdArgArgV() is the same as ArgV( 0 ). The text may be a name without a directory, for example "report", or a full path. ExeName() always gives the full path of the program file.
Example
PROCEDURE Main()
Check( 'CmdArgArgV() is ArgV( 0 ) ', CmdArgArgV(), ArgV( 0 ) )
Check( 'CmdArgArgV() is not empty ', Empty( CmdArgArgV() ), .F. )
RETURN
STATIC PROCEDURE Check( cTitle, xResult, xExpected )
QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )
RETURNOutput
CmdArgArgV() is ArgV( 0 ) OK
CmdArgArgV() is not empty OK