Command Function

Command Function

Postby Otto » Fri Mar 30, 2007 9:29 am

How to return the command-line arguments specified when launching a FW/FWH program.
Thanks in advance
Otto
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Postby Antonio Linares » Fri Mar 30, 2007 9:34 am

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: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Mar 30, 2007 9:37 am

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

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

Postby Enrico Maria Giordano » Fri Mar 30, 2007 9:43 am

Or, for a fixed number of parameters:

FUNCTION MAIN( cPar1, cPar2, cPar3 )

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Otto » Fri Mar 30, 2007 9:50 am

WOW - that's support!
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests