cancel
Showing results for 
Search instead for 
Did you mean: 

Preventing Entry of decimal value

Experimenter
Experimenter

L.S.

as quite a "newbie", I'm trying to force enduser only to enter a integer value.
(Data type of properties are set to Double)

 

What I want is : as user enters a value, entering possibilities stops at the moment
a decimal separator (point or comma) is entered...

can this be done ??

regards

3 REPLIES

Betreff: Preventing Entry of decimal value

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Hi,

 

Why don't you take Long?

 

Regards

Christian

Betreff: Preventing Entry of decimal value

Experimenter
Experimenter

Well to tell you the truth, I already defined quite some properties with "double", then I should delete all of
those, and redefine them again (yes... sorry I'm a bit lazy..Smiley Wink), copying the correct line would be easier.

And maybe even more important : Long gives on wrong input, a "system message back", which probably not always will be understood by Dutch end users. Display name in system message is a bit cryptic..

Regards

John

 

Re: Preventing Entry of decimal value

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Make use of the "When Changed". Look for "." and remove as soon it is typed in.

 

-Thilak Rao