
Get command-line arguments in QB 4.5 ?
Quote:
>Hello Everybody,
>How can I get the command-line arguments pass to my QB 4.5 program (if
>any!) ? Some sample code would be nice.
REM get the command line
cline$ = COMMAND$ + " "
i = 0
WHILE cline$ <> ""
p = INSTR(cline$, " ")
arg$(i) = RTRIM$(LEFT$(cline$, p))
cline$ = RIGHT$(cline$, (LEN(cline$) - p))
i = i + 1
WEND
returns the command parms in arg$(x), one parm to each element.
Mike-
Quote:
>--
>Lennie De Villiers
>PL/I for Palm Project:
> http://www.*-*-*.com/ ~lennie2000/comp/PLI_Palm/ e (Exclamation)
>Programming Language:
> http://www.*-*-*.com/ ~lennie2000/comp/e_lang/
>-- Remove ~ and 9s to reply --
-------------------------------------------------------------------
My web page is at http://www.*-*-*.com/
Because network administration is like herding cats.
-------------------------------------------------------------------
It is currently impossible to email me from any address in the domains:
mailcity.com, hotmail.com, e{*filter*}.com, yahoo.com, hotbot.com
Mail sent from Microsoft Outlook will also be filtered.
Spam and viruses are surplus to my needs. Sorry for the inconvenience.
-------------------------------------------------------------------
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.*-*-*.com/ - The #1 Newsgroup Service in the World!
Check out our new Unlimited Server. No Download or Time Limits!
-----== Over 80,000 Newsgroups - 19 Different Servers! ==-----