IonicWind Software

IWBasic => General Questions => Topic started by: Rod on January 27, 2007, 05:15:16 PM

Title: argc & argv?
Post by: Rod on January 27, 2007, 05:15:16 PM
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!!!

Title: Re: argc & argv?
Post by: Ionic Wind Support Team on January 27, 2007, 06:03:24 PM
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
Title: Re: argc & argv?
Post by: Rod on January 27, 2007, 06:31:40 PM
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!!!!  :)
Title: Re: argc & argv?
Post by: seberbach on January 27, 2007, 08:34:53 PM
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
Title: Re: argc & argv?
Post by: Ionic Wind Support Team on January 27, 2007, 08:41:59 PM
Because no matter how hard I try, I can't think of everything  :o