Hi Charles,
I compare some console demos that contain keywords from different BASIC dialects and how they could be developed in Oxygenbasic. Unfortunately I have only learned GW-Basic in the past and still suffer from it, though I have probably made some progress in this respect thanks to O2.
In this example (derived from BCX) I apply the use of `:` to concatenate several statements in one line. This works qute nice with one exception in line 53: Oxygenbasic refuses to accept :cls: (:cls : or :cls(): will work):
':cls: does not work?
dim a:setcolor 7,0:cls :for a=1 to 23:print "This is line number "a:print cr:next:print "This is line number "a++:print " Enter ...":call panel(5,10,20,20,15,1,32,0):locate 1,50,0:waitkey:call panel(5,10,20,20,15,4,32,1):locate 1,1,0:waitkey:cls
The error message is:
ASSEMBLER:
ERR: cls!! Unidentified instruction: cls
LINE: 53
FILE: "main source"
At first I thought O2 would see :cls: as a label. But on the other hand :next: and :waitkey: are accepted. Could there be another reason why :cls: throws an error message?
Roland