Page 1 of 1

[Implemented] ProgramParameter(0)

Posted: Fri Dec 27, 2002 11:45 pm
by BackupUser
Restored from previous forum. Originally posted by pbdep.


Hello Fred,

I know ProgramParameter() will return one after one, but thats
a little anoying :wink:

Also Args(0) should better return the program name!
(Can be found in the Exe and Com stack between? 0000 - 0800 i think?)

Anyway Could you enhance ProgramParameter by ->

Result = ProgramParameter() ; return the length of Args
Result = ProgramParameter(0) ; return the Filename
Result = ProgramParameter(n) ; return the args ..n


The above is better then pushing yourself into WindowsAPI calls
and Linux executes to get your program name while its simply
inside the Binary :wink:

Regards,
Norman.

Posted: Fri Dec 27, 2002 11:47 pm
by BackupUser
Restored from previous forum. Originally posted by pbdep.


Correction:
Its ot inside the binary, its located in
the stack (Fileinfo) area after execution.

Norman.

Posted: Sat Dec 28, 2002 12:03 am
by BackupUser
Restored from previous forum. Originally posted by fred.

I will better add a ProgramName() command, as ProgramParameter() has nothing to do with the name :).

Fred - AlphaSND