‎2007 Jul 10 1:29 PM
hi,
the data type which iam using is wertv9 (it's length is 17,it is dictionary type ) ,sometime my value culd be less then 17 digits like 6 or 7 digits. when i print the variable of type wertv9 i get leading spaces.I cannot move it into character type variable becoz the commas which need to be displayed are removed when it is moved to character type variable.
can anyone suggest as how to remove leading space & KEEP the comma's as well.
e.g:
12345,56.89(this is how iam getting)
12345,56.89(this is wht is required).
points will be rewarded.
‎2007 Jul 10 2:02 PM
Hi,
try to create a temp var type C with the length of the currency field you want. then, use the write command and the condense command. Like this:
data: v type wertv9,
x(17) type c.
...
write: v to x.
condense x.
write x.
The space will remove and the comma will keep.
Reward if useful!
Reagards,
RP
‎2007 Jul 10 2:02 PM
Hi,
try to create a temp var type C with the length of the currency field you want. then, use the write command and the condense command. Like this:
data: v type wertv9,
x(17) type c.
...
write: v to x.
condense x.
write x.
The space will remove and the comma will keep.
Reward if useful!
Reagards,
RP