Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / passing instructions via command line

Author
Message
sicjoshsic
22
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 12th May 2003 23:38
is it possible to pass information to programs made in darkbasic at startup?

e.g. in medal of honour, to activate the cheats you put

MOHAA -thereisnomonkey -cheats=1
(or something like that)
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 12th May 2003 23:46
in dbpro you get a special command called cl$() which contains the arguments. I assume it is same in db classic

Gronda, Gronda
sicjoshsic
22
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 12th May 2003 23:59
oh, ive seen that, but i thought that was for passing commands to other programs! :-s

thanks!

Ag3ntSm1th
22
Years of Service
User Offline
Joined: 13th May 2003
Location:
Posted: 13th May 2003 09:52
so just make a smaller app to launch your main app w/ parameters

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 13th May 2003 22:03
Quote: "oh, ive seen that, but i thought that was for passing commands to other programs! :-s "


No, I think ther is an execute program comand with will execute a program with parameters.

And if a function has "$()" at the end you can be sure it will return a string!

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....

Login to post a reply

Server time is: 2025-05-17 09:39:04
Your offset time is: 2025-05-17 09:39:04