Global Variables And Constants
Global variables are used to access system values (e.g. the touch coordinates) and to change the behaviour of some procedures. Global constants represent system specific values, e.g. the PV model used. Constants can be used in directives so it is possible to develop different platform-specific solutions for the same task.
Constant | Explanation |
#FLOATSIZE | Size of a Float variable in Integer units (PV-S1600: 2, other PV models: 4) |
#INTSIZE | Size of an Integer variable in bytes (PV-S1600: 4, other PV models: 2) |
#JUMPBUFSIZE | Size of an array needed for JUMP/ SETJUMP% (PV-S1600/other PV models: 2) |
#NULL | Symbolic constant that represents the numerical value 0. Use in pointer assignments |
#OWBVERSION | Current OWBasic version |
#PVMODEL | Current PV model |
Variable | Explanation |
TCHX | X touch coordinate |
TCHY | Y touch coordinate |
ERROR | Specifies the number of the error occured before. If no error occured, ERROR is 0 |
INPUTRC | Specifies the button the INPUT dialogue was left with (-> INPUT) |
PARAMETER$ | Specifies the parameter the program was called with |
FORMSTRINGS$ | Contains the form button captions. The main value of the button selector corresponds with the array index. |
ERRORHANDLER | User-defined error handling |
EXITHANDLER | User-defined exit handling |
PVMODEL | Current PV model (obsolete; use #PVMODEL instead) |
OWBVERSION | Current OWBasic version (obsolete; use #OWBVERSION instead) |
|