Is "ERROR" a reserved word?

Dave E

Senior Member
Is the word ERROR a reserved word?

I did not see it in the list of reserved words in manual 2 . When using the word as a variable, the PE displays it in a blue/grey color like that used for commands and not purple used for variables. A syntax check shows all is well.

Dave E
 

BeanieBots

Moderator
I don't know the answer but I also get the colour syntax which implies it is.
I have also had issue with other words (which fail syntax but which I can't remember off hand) so perhaps an update to the reserved word is in order.
 

Technical

Technical Support
Staff member
Due to the colour coding technology used '#error' and 'error' colour code the same. So although 'error' by itself is not currently a reserved word we still wouldn't recommend using it.
 

westaust55

Moderator
Another couple of commands that seemingly need a minor fix in PE 5.2.10 with respect to colour coding.

The maths functions:
DIG REV SQR SIN COS INV NOB ATAN BINTOBCD BCDTOBIN
are all shown in Blue

But the MIN and MAX are displayed in black
 

westaust55

Moderator
For those who are careful and want the BASIC programming keywords MIN and MAX in the correct colour (blue) scheme you can change this by:

1. Using Windows Explorer (or similar) go the the Programming Editor directory.
Usually located at: C:\Program Files\Programming Editor

2. Open the commands.rw file with Notepad (or similar text editor)

3. Add the keywords "max" and "min" into the file. Suggest keep them in alphabetic order

4. Save and close the file.

Next time you start the PE those keywords will be in Blue text.
 
Top