Search the web
Sign In
New User? Sign Up
fdb · FDB's "Advanced Programming" list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: [FDB-LIST] (unknown)   Message List  
Reply | Forward Message #23 of 103 |
there is no such thing as "NULL" in QBasic...so you must assign a value(for
instance, -1) as NULL)

so if you want the keyboard to gain the input and respond accordingly:

INPUT "Enter a string here:"; String$   ' waits for the user to write
something
SELECT CASE String$                      ' what did they enter?
 CASE "a": ' do something blah blah
 CASE "b": ' do something else
 CASE "":   ' this is the value if the user just hits <enter>
 CASE ELSE: ' if the user entered something other than those things.
END SELECT


Mon Feb 26, 2001 1:38 am

Batguy0@...
Send Email Send Email

Forward
Message #23 of 103 |
Expand Messages Author Sort by Date

there is no such thing as "NULL" in QBasic...so you must assign a value(for instance, -1) as NULL) so if you want the keyboard to gain the input and respond...
Batguy0@...
Send Email
Feb 26, 2001
1:38 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help