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

Field type string and I

Former Member
0 Likes
461

Hi,

I have a data :

data:quantite_typeI type I.

data:quantite_typeC type string.

i have a data : var_remise1 type ZKBETR.

but when i'm doing this code to change : var_remise1 to a strin :

quantite_typeC = var_remise1.

quantite_typeI = quantite_typeC.

When i have var_remise1 = -0.25 ( value < 1 ) i have quantite_typeC = 0 and quantite_typeI = 0.

when i have var_remise1 = -1 or -2... that's work.

I don't understand why i have a problem with value <1.

Thanks for your reply.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
438

ähm well type i means ONLY full numbers, no decimals.

declare quantite_typeI of type p or f then all will work.

Hi,

I have a data :

data:quantite_typeI type I.

data:quantite_typeC type string.

i have a data : var_remise1 type ZKBETR.

but when i'm doing this code to change : var_remise1 to a strin :

quantite_typeC = var_remise1.

quantite_typeI = quantite_typeC.

When i have var_remise1 = -0.25 ( value < 1 ) i have quantite_typeC = 0 and quantite_typeI = 0.

when i have var_remise1 = -1 or -2... that's work.

I don't understand why i have a problem with value <1.

Thanks for your reply.

2 REPLIES 2
Read only

Former Member
0 Likes
438

Oh sorry, a mistake.

quantite_typeC = var_remise1. ---> ook i have 0.25-

quantite_typeI = quantite_typeC. -


error i have 0

quantite_typeC = quantite_typeI.----> error i have 0 and not 0.25-

Read only

Former Member
0 Likes
439

ähm well type i means ONLY full numbers, no decimals.

declare quantite_typeI of type p or f then all will work.