User manual

mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
661
ByteToStr
Prototype
sub procedure ByteToStr(dim input as byte, dim byref output as string[3])
Description Converts input byte to a string. The output string is right justied and remaining positions on the left (if
any) are lled with blanks.
Parameters - input: byte to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
dim t as byte
txt as string[3]
...
t = 24
ByteToStr(t, txt) ‘ txt is “ 24” (one blank here)
Notes None.
ShortToStr
Prototype
sub procedure ShortToStr(dim input as short, dim byref output as
string[4])
Description Converts input short (signed byte) number to a string. The output string is right justied and remaining
positions on the left (if any) are lled with blanks.
Parameters - input: short number to be converted
- output: destination string
Returns Nothing.
Requires Nothing.
Example
dim t as short
txt as string[4]
...
t = -24
ByteToStr(t, txt) ‘ txt is “ -24” (one blank here)
Notes None.