Mikroelektronika MIKROE-442 Datenbogen
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
151
Prototype
sub procedure Inc(dim byref par as longint)
Description
Increases parameter
par
by 1.
Parameters
-
par
: value which will be incremented by 1
Returns
Nothing.
Requires
Nothing.
Example
p = 4
Inc(p) ‘ p is now 5
Notes
None.
Inc
Prototype
sub procedure Dec(dim byref par as longint)
Description
Decreases parameter
par
by 1.
Parameters
-
par
: value which will be decremented by 1
Returns
Nothing.
Requires
Nothing.
Example
p = 4
Dec(p) ‘ p is now 3
Notes
None.
Dec
Prototype
sub function Chr(dim code_ as byte) as char
Description
Function returns a character associated with the specified character
code_
. Numbers from 0 to 31
are the standard non-printable ASCII codes.
This is an “inline” routine; the code is generated in the place of the call.
Parameters
-
code
: input character
Returns
Returns a character associated with the specified character
code_
.
Requires
Nothing.
Example
c = Chr(10) ‘ returns the linefeed character
Notes
None.
Chr