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.

Newcomers DBPro Corner / I Need help

Author
Message
95102
20
Years of Service
User Offline
Joined: 14th May 2004
Location:
Posted: 14th May 2004 16:06
I have just got dark basic (Had the demo some time also), but i have problems with this little command thing.
i used the if else command before but now it keeps telling me #100013 Command out of place at line 15, (The first if else line).
If you can help me, please do so.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th May 2004 16:22
dbp has no Elseif/esle if commands


* DBP_NETLIB_v1 - VB.NET PLUGIN FOR DBP * Click Logo
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 14th May 2004 16:38 Edited at: 14th May 2004 16:39
Use a lot of endifs or just use a select statement:

select lower$(cmd$)
case "windir"
text 5,5,windir$()
endcase
case "help"
text 5,5,"Dont pick your nose"
endcase
endselect

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 14th May 2004 21:53 Edited at: 14th May 2004 21:59
Reformated for legibility with endif commands included...
--
TAZ



I agree that Emperor Baal's suggestion would be better in this case.

Login to post a reply

Server time is: 2024-09-22 09:48:29
Your offset time is: 2024-09-22 09:48:29