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

urgent adding amount field

Former Member
0 Likes
678

hi all,

i want to add two amount field.

like field1 = 13,500

field2 = 1,000

when i run this program

it leds to short dump.

error shows

Unable to interpret " 13,905.04 " as a number.

how can add these fields having comma separator.

hi all,

i want to add two amount field.

like field1 = 13,500

field2 = 1,000

when i run this program

it leds to short dump.

error shows

Unable to interpret " 13,905.04 " as a number.

how can add these fields having comma separator.

4 REPLIES 4
Read only

Former Member
0 Likes
610

check the type of field 1 and field 2 the may be chars or the result field may be not an integer

Read only

Former Member
0 Likes
610

Hello,

You can use the variable by defining it as TYPE P.

Reward if Helpful.

Regards,

Amit G.

Read only

Former Member
0 Likes
610

Bala,

you have to code like this:

field3 = field1 + field2 .

remember in you case resulting set (field3) is not being decleare as type p.

you have to decleare all three fields as type p.

Amit.

Read only

Former Member
0 Likes
610

U need to replace all ',' with space ... and then add ..