Page 1 of 1
command-line arguments
Posted: Sun Feb 18, 2007 7:00 am
by Otto
Is there a function which returns the command-line arguments specified when the program was launched.
text.exe ABC
prg
Local cTest :=""
cTest:=command()
Regards
Otto
Re: command-line arguments
Posted: Sun Feb 18, 2007 8:44 am
by Enrico Maria Giordano
This is a sample:
Code: Select all
FUNCTION MAIN( cPar1, cPar2, cPar3 )
LOCAL i
? cPar1, cPar2, cPar3
?
FOR i = 0 TO HB_ARGC()
? HB_ARGV( i )
NEXT
?
RETURN NIL
EMG
Posted: Sun Feb 18, 2007 9:00 am
by Frank Demont
Code: Select all
#include "FiveWin.Ch"
FUNCTION MAIN(...)
*************
LOCAL Arr := Hb_Aparams()
AEVAL(Arr,{|j|msginfo(j)})
RETURN
Posted: Sun Feb 18, 2007 9:06 am
by Otto
Thank you.
Otto