‎2008 Apr 29 6:25 AM
Hi,
I am using EDIT MASK to displayt he amount as per the data which I am ex[pecting
Write V1 to V2 using edit mask '1.23,456'
But it is not converting the data to the edit mask...
its just displaying the value as what I am giving in the editmask..
for example:
V1 is 1000.00
Write V1 to V2 using edit mask '1.23,456'
I want to display as 1.00,000
Instead, it is displaying '1.23,456'
‎2008 Apr 29 6:33 AM
Hi,
Before the write statement:
SET COUNTRY 'DE'. "Now this would give the number format
"as you expected
write statement.
SET COUNTRY SPACE.
Thanks and regards,
S. Chandra Mouli.
‎2008 Apr 29 6:41 AM
Parameters : v1 type p decimals 2 default '100.00'.
data : v2(7).
write v1 to v2 using edit mask '_,__.__'.
write 😕 v1,
/ V2.
Sample code : u should use '_'
‎2008 Apr 29 6:53 AM
Hi,
U can use SET COUNTRY as well as the other code as posted by madhavi...I.e Using Edit Mask...
But remeber one thing..
When u use SET COUNTRY..DNT 4get to set space again..
SInce it applies to all currency format throughout ur program.
Thanx,
Navin.
‎2008 Apr 29 7:31 AM
I gave as write v1 to v2 using edit mask '_,__.___',___' only...
I have amount as 1,904,80
It should be converted as 1,90.480
But it is displaying as 1,90.480, (Last one comma)
‎2008 Apr 29 9:24 AM
Hi,
First split the value at ',' and concatenate and save it.
Finally use edit mask.
var1 = 1,904,80
split var1 at ',' into s1 s2 s3.
concatenate s1 s2 s3 into var2.
write: var2 using edit mask '_,__.___'.
Reward,if useful.
Thanks,
Chandu