User manual

186
mikoBasic PRO for PIC32
MikroElektronika
Uniqueness and Scope
Although identier names are arbitrary (within the rules stated), errors result if the same name is used for more than
one identier within the same scope. Simply, duplicate names are illegal within the same scope. For more information,
refer to Scope and Visibility.
Identier Examples
Here are some valid identiers:
temperature_V1
Pressure
no_hit
dat2string
SUM3
_vtext
… and here are some invalid identiers:
7temp // NO -- cannot begin with a numeral
%higher // NO -- cannot contain special characters
int // NO -- cannot match reserved word
j23.07.04 // NO -- cannot contain special characters (dot)
Punctuators
The mikroBasic PRO for PIC32 punctuators (also known as separators) are:
- [ ] – Brackets
- ( ) – Parentheses
- , – Comma
- : – Colon
- Dot
Most of these punctuators also function as operators.
Brackets
Brackets [ ] indicate single and multidimensional array subscripts:
dim alphabet as byte[30]
‘ ...
alphabet[2] = “c”
For more information, refer to Arrays.