April 28, 2024, 02:14:09 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


argc & argv?

Started by Rod, January 27, 2007, 05:15:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rod

Sorry to be such a PITA tonight, but one more question and I'll let it go for the evening.

Does EB have the equivalent of of C's argc and argv[] for accessing arguments on the command line?

IOW, if I start my program with "myprog.exe abc", how do I obtain the "abc" from the command line?

Thanks!!!


Ionic Wind Support Team

This is for Aurora but the information is valid and converting should be simple:

http://www.ionicwind.com/forums/index.php/topic,1041.0.html
Ionic Wind Support Team

Rod

Thanks, Paul! I've got that working now.

I thought I had seen that as an EBasic command, but I guess not.

It's simple enough to do, I don't suppose there's any point in making it a built-in command.

For some of these WinAPI commands that we're likely to use a lot, does it make sense to put a section into the documentation with examples?

Thanks for your help with this!!!!  :)

seberbach

Quote from: Paul Turley on November 06, 2006, 06:01:44 PM
GetArgCount, GetArgString and GetArgStringW are now in Beta1 Rev 3.  Available this evening to a computer near you ;)

If this is in Aurora, why not in EBasic?  It is procedural, and could help in porting Ebasic programs to Aurora.

Steve

Ionic Wind Support Team

Because no matter how hard I try, I can't think of everything  :o
Ionic Wind Support Team