Mikroelektronika MIKROE-724 データシート
666
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
LongWordToStrWithZeros
Prototype
sub procedure LongWordToStrWithZeros(dim input as longword, dim byref output
as string[10])
Description Converts input dword to a string. The output string is right justified and the remaining positions on the
left (if any) are filled with zeros.
Parameters -
input
: word to be converted
-
output
: destination string
Returns
Nothing.
Requires
Nothing.
Example
dim t as longword
txt as string[10]
t = 12345678
LongWordToStrWithZeros(t, txt) ‘ txt is “0012345678”
Notes
None.
LongIntToStrWithZeros
Prototype
sub procedure LongIntToStrWithZeros(dim input as longint, dim byref output
as string[11])
Description Converts input longint to a string. The output string is right justified and the remaining positions on the
left (if any) are filled with zeros.
Parameters -
input
: word to be converted
-
output
: destination string
Returns
Nothing.
Requires
Nothing.
Example
dim t as longint
txt as string[11]
t = -12345678
LongIntToStrWithZeros(t, txt) ‘ txt is “-0012345678”
Notes
None.