#1
|
|||
|
|||
![]()
Hi,
I would like to make a numeric edit imput box, only numeric and comma imput allowed. How I can do this? Giuseppe |
#2
|
|||
|
|||
![]()
Welcome Giuseppe
![]() unfortunalty there isn't a predefined way to do this, so you have to check every single input if it is a digit or not. try the following: 1. make a new form with an editbox 2. add the event OnChange for the editbox 3. switch to code view ('view project source' icon) 4: insert this code in the OnChange function: PHP Code:
you can also insert this code per visual programming, but this way its a bit faster. |
#3
|
|||
|
|||
![]()
Tkank You very much.
I'll try it. Giuseppe |
#4
|
|||
|
|||
![]()
You could also create a new component inherited from PEdit and just add ES_NUMBER to the PEdit.Create proc.
|
#5
|
|||
|
|||
![]()
that is even a better solution, have overlooked this editbox style
![]() |
#6
|
|||
|
|||
![]()
Heyyyyyy Nicknack,
You have a green card, remember. All your posts are so much more than just helpfull. When your name shows up, I immediately get a smile on my face. Greetzzz, Helen. |
#7
|
|||
|
|||
![]()
True that. Nicknack is amazing! Thank god he is around.
|
#8
|
|||
|
|||
![]()
I'm feeling very grateful, but I don't do it selfless, I get always get something back from you
![]() |
#9
|
|||
|
|||
![]() Quote:
Regards, Giuseppe |
#10
|
|||
|
|||
![]()
ES_RIGHT should be the adequate style. concerning inherting, simply inherit the PEdit class and copy/rewrite the create function to your needs. see the help file topic about classes for further info.
|
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|