Varkon MBS Programmers manual
Converts a reference value to a string of characters with optional formatting.
s:=rstr(id, width); string s; ref id; int width;
id | - The value to convert. |
width | - The number of character positions that will be used. |
- If width is negative, characters will be left justified. | |
- If width is positive, characters will be right justified. | |
- If width is less than the characters needed, it is automatically increased. | |
- If width is larger than the characters needed, spaces are added. |
A STRING value equal to the result of the conversion.
id:=#5.2#7; s:=rstr(id); ! Equal to s:="#5.2#7"; s:=rstr(id,12) ! Equal to s:=" #5.2#7"; s:=rstr(id,-12) ! Equal to s:="#5.2#7 ";
Varkon 1.19D svn # 120M