Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is this a bug?
#4
Your syntax error is trying to read a string as a number.  Wink

DATA 1's, 2's, 3's

READ x    <-- ERROR!


READ x$
PRINT x$

(Prints "1's")

Data can hold both numbers and strings in one statement.  Read can only read the type you specify back though.  Wink
Reply


Messages In This Thread
Is this a bug? - by TerryRitchie - 05-12-2024, 12:38 AM
RE: Is this a bug? - by SMcNeill - 05-12-2024, 12:46 AM
RE: Is this a bug? - by TerryRitchie - 05-12-2024, 12:52 AM
RE: Is this a bug? - by SMcNeill - 05-12-2024, 01:26 AM
RE: Is this a bug? - by PhilOfPerth - 05-12-2024, 10:47 AM
RE: Is this a bug? - by grymmjack - 05-16-2024, 09:57 PM
RE: Is this a bug? - by SMcNeill - 05-16-2024, 10:51 PM



Users browsing this thread: 7 Guest(s)