Command Function

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Command Function

Post by Otto »

How to return the command-line arguments specified when launching a FW/FWH program.
Thanks in advance
Otto
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Otto,

HB_ARGC() Returns the number of command line arguments passed to the application, this also includes the internal arguments

HB_ARGV( n ) Returns a command line argument passed to the application. Calling it with the parameter zero, it will return the name of the executable, as written in the command line
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

In FW 16 bits you may use: NARGC() and CARGV( n )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Or, for a fixed number of parameters:

FUNCTION MAIN( cPar1, cPar2, cPar3 )

EMG
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

WOW - that's support!
Post Reply