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 / im stupid please help

Author
Message
gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 23rd Jul 2004 08:21
language: dbp
for some reason my code won't work it only shows one of the choices...please please help me

Chaos Games
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 23rd Jul 2004 08:37
A simple example of how to use SELECT/CASE statements:


Play Nice! Play Basic! Check it out. Now.
gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 23rd Jul 2004 12:04
but i still want it to be centered

Chaos Games
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 23rd Jul 2004 12:44 Edited at: 24th Jul 2004 00:14
removed code with typos
see next post


gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 23rd Jul 2004 13:21
thank yu zenassem for putting up with me this long.

Chaos Games
gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 23rd Jul 2004 13:28
it says title something and then it don't work?

Chaos Games
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 24th Jul 2004 00:08 Edited at: 24th Jul 2004 00:21
Argghhh! Sorry that's what I get for not testing it in the compiler. There were a few typos and mistakes I made. Sorry About that. In order to make ammends I improved the code a little. And this time it works! You no longer have to press enter for your choice. Just press the key. It will then tell you which action was processed. You can test the other entries by clicking the left mouse button.

the upper$( <string> ) command forces the case to uppercase. This way it doesn't matter if the user has caps lock on/off.




gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 24th Jul 2004 01:19
THANKS IT WORKS BUT I CAN'T SELECT ANYTHING SO IT CAN'T END?

Chaos Games
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 24th Jul 2004 01:36 Edited at: 24th Jul 2004 01:37
huh

press "E" and it should quit. after asking to press any key. if you choose "L" or "N" you will need to click the mouse button to go back to the choices.

or press "esc" at anytime to close the app.


gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 24th Jul 2004 01:51
that don't work for sum reason... its crazy

Chaos Games
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 24th Jul 2004 01:58 Edited at: 24th Jul 2004 01:58
Gothboy 101,

What exactly isn't working. It not accepting any keyboard entry? It's not closing? Is anything working? Because I just copied the code snippet I posted to the letter and ran it and it's working here. You have the lates patch 5.4? latest editor?

I'll admit the code isn't really the way I would write it, but i just pieced it together and wanted to provide you with a main loop. And i put gosubs and returns as an example. I could rewrite it the way I would actually set it up.

~zen

CR, if you seeing this, I should be cleaning and getting to work on the parser. I just had to check this. I told you I should ask my ISP to block the site when I know I should be working. GUILTY! Darn forums have a grip on me. I might need to go to Forum rehab.


CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 24th Jul 2004 02:05
DAMMIT ZEN close the browser and get coding!!!
I am waiting for your dll!

bah!





DBP_NETLIB_v1.4.3 - 65 FREE Functions * Click Logo
gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 24th Jul 2004 02:47
if i press escape nothing happens or maybie a just a scew ball

Chaos Games

Login to post a reply

Server time is: 2024-11-27 01:35:02
Your offset time is: 2024-11-27 01:35:02