mutantcamel
Experienced Member
- Joined
- Dec 14, 2007
- Messages
- 76
I've very new to this programming lark. I'm trying to get part of a program running which is in TI99 Basic and change it so it can work on my CC-40.
The originals lines are:
350 INPUT "How much do you want to bet? ":BET
360 IF (BET>SUM)+(BET<0)THEN 350
After numerous changes I came up with for the CC-40 Version
350 LINPUT "How much do you want to bet?";B$AUSE 2
360 IF B$=0 THEN 350
361 IF B$>SUM THEN 350
SUM is defined earlier in line 170
170 SUM=100
I'm assuming for the CC-40 to save the value, it has to be a word or letter containing $. Not sure if you would use LINPUT in this situation, INPUT doesn't seem to work.
When running the program I get the error String-number mismatch
Please help I'm stuck!
The originals lines are:
350 INPUT "How much do you want to bet? ":BET
360 IF (BET>SUM)+(BET<0)THEN 350
After numerous changes I came up with for the CC-40 Version
350 LINPUT "How much do you want to bet?";B$AUSE 2
360 IF B$=0 THEN 350
361 IF B$>SUM THEN 350
SUM is defined earlier in line 170
170 SUM=100
I'm assuming for the CC-40 to save the value, it has to be a word or letter containing $. Not sure if you would use LINPUT in this situation, INPUT doesn't seem to work.
When running the program I get the error String-number mismatch
Please help I'm stuck!