User manual

661
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
WordToStr
Prototype
procedure WordToStr(input : word; var output : array[5] of char);
Description Converts input word to a string. The output string is right justied and the remaining positions on the
left (if any) are lled with blanks.
Parameters - input: word to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var t : word;
txt : array[5] of char;
...
t := 437;
WordToStr(t, txt); // txt is “ 437” (two blanks here)
Notes None.
IntToStr
Prototype
procedure IntToStr(input : integer; var output : array[6] of char);
Description Converts input integer number to a string. The output string is right justied and the remaining positions
on the left (if any) are lled with blanks.
Parameters - input: integer number to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
var input : integer;
txt : array[6] of char;
//...
begin
input := -4220;
IntToStr(input, txt); // txt is ‘ -4220’
Notes None.