Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Nixie Regular Member Joined: 19/02/2013 Location: AustraliaPosts: 66
Posted: 09:49pm 04 Mar 2013
Copy link to clipboard
Print this post
((These things are to keep me sharp Geoff :-) ))
Something to be aware of:
If I enter "DIM AS(100)" and then LIST or use the EDITOR, it always comes out as
"DIM As(100)" - always lower-case 's'
Trouble is when using other commands such as PRINT AS in the same program, it can't find it because AS has been stored with the DIM statement as "As".
Doesn't seem to do it with other letters. I tried DIM AN(100) - not a problem.
Just seems to be something with the letter "S"
ALSO:
at the command prompt
AS=1 (or As=1)
PRINT AS (or PRINT As - gives the results as:)
Error: Invalid syntax in both cases
BUT
at the command prompt
AB=1
PRINT AB
1
Ab=2
PRINT Ab
2
(Biggles is still smiling grimly!)
Cheers, all - Nic.
MM_Wombat Senior Member Joined: 12/12/2011 Location: AustraliaPosts: 139
Posted: 12:06am 05 Mar 2013
Copy link to clipboard
Print this post
Hi,
Is this because 'AS' is a reserved word. used in
open "com1:9600" As #1
or
font load "myfont.fnt" As #4
or
open "mytext.txt" for input As #1
You probably can't have a dimension statement for
TO or FOR or OR or AND or NEXT etc..
DennisKeep plugging away, it is fun learning
But can be expensive (if you keep blowing things up).
Maximite, ColourMaximite, MM+
Nixie Regular Member Joined: 19/02/2013 Location: AustraliaPosts: 66
Posted: 12:15am 05 Mar 2013
Copy link to clipboard
Print this post
Ah Dennis - thanks! That does explain it!
I can sleep tonight.