Hi, I am very new to BASIC, and I just want to know how to input a string
thanks
dimava
Printable View
Hi, I am very new to BASIC, and I just want to know how to input a string
thanks
dimava
string variables have to have a $ at the end of the name
that type of thingCode:INPUT "What is your name"; name$
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 ;Code:LINE INPUT A$
eg:
Code:INPUT "Name:", n$
Kagey, Name$ cannot be used as a variable because it is a reserved word in BASIC.. used to rename a fileQuote:
Originally posted by Kagey
Code:INPUT "What is your name"; name$
thanks guys :)