Formatting valus
Posted: Fri May 01, 2009 4:03 am
Hi,
I need to format my input value based on the length of the target column.
So the length in the 2nd argument of Fmt function should be a variable.
I assign below value to one of the stage variable.
StageVar1 = '"':StageVar:"'0'R" : '"'
The StageVar is holding the varaible length.
Finally, Im using Fmt function as Fmt("45", StageVar1). But the leading zeros is not getting inserted to the value based on the value of StageVar.
Please help me to acheive this requirment.
I need to format my input value based on the length of the target column.
So the length in the 2nd argument of Fmt function should be a variable.
I assign below value to one of the stage variable.
StageVar1 = '"':StageVar:"'0'R" : '"'
The StageVar is holding the varaible length.
Finally, Im using Fmt function as Fmt("45", StageVar1). But the leading zeros is not getting inserted to the value based on the value of StageVar.
Please help me to acheive this requirment.