Login
Back to forumSee the full topicGo to last reply

Posted By

JamesC
on 2007-05-08
07:59:07
 Re: Oddness in INPUT#

I have come across this, years ago. It also occurs in INPUT (from keyboard).

10 INPUT A$, B$
20 PRINT A$, B$

Run this short program and enter ABC:DEF. The computer will prompt you for more. Enter GHI. The computer will print ABC GHI (forgetting DEF completely).

As it is possible to SAVE and reLOAD a BASIC program that has colons in the program lines, it is not a fault of the operating system itself. The fault lays within BASIC's INPUT routine.

This was discussed in a US Commodore magazine years ago, but I cannot locate it immediately. When I find it I will post it for you.

In the meantime, if you MUST have commas and colons in your datafiles.... substitute another character. One could use CHR$(133) as a replacement for a comma, CHR$(134) as a replacement for a colon.



Back to top


Copyright © Plus/4 World Team, 2001-2024