User manual
230
mikoPascal PRO for PIC32
MikroElektronika
With Statement
The With statement is a convenient method for referencing elements of a complex variable, such as a record.
It simplies the code by removing the need to prex each referenced element with the complex variable name; i.e.
accessing all of the record's elds with only one reference.
Example:
program With_Test;
type Circle_Parameters =
Record
x_center : integer;
y_center : integer;
radius : integer;
end;
var Circle : Circle_Parameters;
begin
With Circle do
begin
x_center := 50;
y_center := 60;
radius := 10;
end;
end.
Directives
Directives are words of special signicance which provide additional functionality regarding compilation and output.
The following directives are at your disposal:
- Compiler directives for conditional compilation,
- Linker directives for object distribution in memory.
Compiler Directives
mikroPascal PRO for PIC32 treats comments beginning with a “$” immediately following an opening brace as a compiler
directive; for example, {$ELSE}. The compiler directives are not case sensitive.
You can use a conditional compilation to select particular sections of code to compile, while excluding other sections.
All compiler directives must be completed in the source le in which they have begun.