ailisee
23rd November 2011, 11:39
How to do if I want to fill up the asterisk * in front of a value if the value is less than the fix length.

refer to below for the examples,
99.00 -> ***********99.00
259000.00 -> *******259,000.00

baan.kmurali
23rd November 2011, 13:33
You can try string.set$ function.


Syntax

string string.set$( string_expr, num_expr )

Description

This returns a string that contains string_expr repeated num_expr times.

Context

Bshell function.

Example

string st(80)
st = string.set$("-", 10) | st contains "----------"
st = string.set$( string.set$("-",3)&"+", 3 )
| st contains "---+---+---+"

st = string.set$( chr(135), 5 ) | st contains 5 graphic symbols

Regards,
Murali