Only numbers allowed???

R

rg66

Hello,

I have a textfield called "Faktor" which has the format dezimal.

I am caculating in a script a decimal number which is written into the
textfield Faktor.

Strangly I am getting now a red broken line box around the text field
and a message "only numbers allowed" such as 0,33

If I click into the textfield Faktor and overwrite the previous entry
manually to 0,33 then the error message is gone. The input is both
time the same.

What do I have to do to get rid of the error message.

please note further that I am using that number within formulars in
other fields.

Thanks for any help!

Robert
 
S

S.Y.M. Wong-A-Ton

Your regional settings is probably set to German, showing a comma as the
decimal separator in numbers, but you must keep in mind that InfoPath still
uses a point as a decimal separator in its numbers even though it is showing
you a comma.

So when setting the value of the decimal field through code, make sure that
you use "0.33" and not "0,33".
 
R

rg66

Thank you!

Checked the value what is returned by infopath and it is as you have
said 0,333 so I am using the replace function to look for comma's.

Working like a charm now!

Only one problem left.

Thank you for your help upto now!

Robert
 
Top