Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Format

former_member240483
Contributor
0 Likes
751

HI Experts,

I want to format the amount ,

If amount is coming like 134567.99 it must be format into 134,567.99

If amount is comming like 134567,99 it must be format like 134,567,99.

COuld anyone give me idea how can i solve this problem,

Thanks

PT

5 REPLIES 5
Read only

Former Member
0 Likes
715

Hi,

Generally formating is user setting specific until you give an edit mask to change the format

you can use write...to...editmask XXX.

santhosh

Read only

Former Member
0 Likes
715

Hi,

Define a variable with type CHAR<length> and use write to statement to move amount to variable.

write <amount> to <variable>.

Regards,

Raju.

Read only

Former Member
0 Likes
715

Hi PT Rao,

I hope you can got this thousand separator by cahnging the User Profile for the System.

GOto SYSTEM->User Profile->Own data.

Now Click on defaults tab of the screen.And change the decimal notation as you want.

Read only

0 Likes
715

Hi there,

according user profile we can adjust to one format..but what i want is when ever , comes it must show , in decimal position and when . it must show . in decimal position.

Regards

PT

Read only

Former Member
0 Likes
715

GOto SYSTEM->User Profile->Own data.

LOGoff once and check the result ........