03 A brief overview of GCW Script

The main features of GCW Script are as follows

  • There are three data types: Numbers, characters/strings and lists. In addition, GCW Script can work with one file at a time.
  • Variable names are strings of characters A … Z. There is a distinction between upper and lower case!
  • The script is interpreted line-oriented like BASIC.
  • In case of commands, the separation of the keywords with blanks must be observed.
  • GCW Script has an internal register to store a coordinate in the format (lat, lon)
  • GCW Script knows the following control structures
    • WHILE – WEND
    • REPEAT – UNTIL
    • FOR – TO – STEP – NEXT
    • GOSUB – RETURN
    • GOTO
    • IF – THEN – ELSIF – ELSE – ENDIF
    • SWITCH – CASE – DEFAULT – ENDSWITCH
    • BREAK
    • CONTINUE
  • GCW Script knows the following commands
    • BEEP
    • CLS
    • DIM
    • END
    • PRINT
    • INPUT
    • SCREEN
    • DATA – READ – RESTORE
    • REM
    • RANDOMIZE
  • GCW Script knows the following classes of functions and methods
    • Mathematical functions and methods
    • Functions and methods for processing strings
    • Functions and methods for processing lists
    • Functions and methods for processing files
    • Functions for checking data types
    • Functions for date and time
    • Functions and methods for graphical output
    • Functions and methods for coordinate calculations/conversions
    • Functions and methods for creating and managing waypoint lists
    • Functions and methods for decryption and encryption of texts
    • Functions and methods for calculating hash values
    • Functions and methods for base encoding
  • Control structures, commands and functions or methods are displayed in color. This works however only with consistent UPPER or LOWER notation
  • A detailed description can be found in the programming manual.