Constants declaration

( PUBLIC | PRIVATE ) CONST Identifier AS Datatype = Constant value

This declares a class global constant.


Example

PUBLIC CONST MAX_FILE AS Integer = 30

PRIVATE CONST MAGIC_HEADER AS String = "# Gambas form file"


Previous: Constants Next: CONTINUE