+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    klicker's Avatar
    klicker is offline Super Moderator
    Join Date
    Oct 2008
    Posts
    517

    Planet Redo from start?

    I am doing the homework for Commodore 64 BASIC module 104 (Interactive program). I wrote the program and got no errors and It asks me for all the stuff: name, city, country, color, and number, but when it gets to hobby and I input a hobby it keeps telling me "Redo from start" what does that mean?

    Here is the relevant portion of my program:

    100 PRINT "FAVORITE HOBBY?"
    110 INPUT H

  2. #2
    chronodev's Avatar
    chronodev is offline Founder
    Join Date
    Oct 2008
    Location
    California
    Posts
    2,264

    Default

    Change H to H$ in line 110

    You need to append the dollar sign to a variable name in order to store a string (like a word or a sentence). As you have it, it will only accept a number which is why you got that message asking you to reinput.

    So your Commodore BASIC code would look like this:

    Code:
    100 PRINT "FAVORITE HOBBY?"
    110 INPUT H$
    chronodev
    Founder, RarityGuide.com
    "We're so busy watching out for what's just ahead of us that we don't take time to enjoy where we are." -Calvin & Hobbes

  3. #3
    klicker's Avatar
    klicker is offline Super Moderator
    Join Date
    Oct 2008
    Posts
    517

 

 

Similar Threads

  1. redo from start
    By Guest 1037 in forum Guests
    Replies: 0
    Last Post: 06-21-2010, 12:55 PM
  2. How do u redo pokemons nicknames?
    By Guest 1030 in forum Guests
    Replies: 0
    Last Post: 05-11-2010, 07:33 AM
  3. "Redo from start" commodore
    By Guest 2452 in forum Guests
    Replies: 0
    Last Post: 04-25-2010, 03:31 AM
  4. redo from start
    By Guest 3409 in forum Guests
    Replies: 0
    Last Post: 04-24-2010, 12:12 PM
  5. "redo from start"
    By Guest 1764 in forum Guests
    Replies: 0
    Last Post: 04-02-2010, 01:20 PM




All times are GMT -7. The time now is 08:40 PM. Copyright (c) 2008 - 2011 RarityGuide, Inc. All rights reserved. All trademarks and copyrights are the property of their respective owners.