|
-
Mar 3rd, 2001, 02:37 PM
#1
Thread Starter
Frenzied Member
Hi, I am very new to BASIC, and I just want to know how to input a string
thanks
dimava
NXSupport - Your one-stop source for computer help
-
Mar 3rd, 2001, 08:26 PM
#2
Hyperactive Member
string variables have to have a $ at the end of the name
Code:
INPUT "What is your name"; name$
that type of thing
-
Mar 3rd, 2001, 09:46 PM
#3
if you want to input a string having a comma etc..
use
using ; in the input statement would give a '?' prompt.. you can remove that by using a comma instead of ;
eg:
-
Mar 3rd, 2001, 09:48 PM
#4
Originally posted by Kagey
Code:
INPUT "What is your name"; name$
Kagey, Name$ cannot be used as a variable because it is a reserved word in BASIC.. used to rename a file
-
Mar 3rd, 2001, 11:36 PM
#5
Thread Starter
Frenzied Member
thanks guys
NXSupport - Your one-stop source for computer help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|