Results 1 to 5 of 5

Thread: Input String???

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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

  2. #2
    Hyperactive Member Kagey's Avatar
    Join Date
    Sep 2000
    Location
    The Wilderness of New Brunswick
    Posts
    294
    string variables have to have a $ at the end of the name
    Code:
    INPUT "What is your name"; name$
    that type of thing

  3. #3
    Guest
    if you want to input a string having a comma etc..

    use

    Code:
    LINE INPUT A$
    using ; in the input statement would give a '?' prompt.. you can remove that by using a comma instead of ;

    eg:
    Code:
    INPUT "Name:", n$

  4. #4
    Guest
    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

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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
  •  



Click Here to Expand Forum to Full Width