FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Command Function
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Command Function
Posted: Fri Mar 30, 2007 09:29 AM

How to return the command-line arguments specified when launching a FW/FWH program.
Thanks in advance
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Command Function
Posted: Fri Mar 30, 2007 09: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Command Function
Posted: Fri Mar 30, 2007 09:37 AM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Command Function
Posted: Fri Mar 30, 2007 09:43 AM

Or, for a fixed number of parameters:

FUNCTION MAIN( cPar1, cPar2, cPar3 )

EMG

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Command Function
Posted: Fri Mar 30, 2007 09:50 AM

WOW - that's support!

Continue the discussion