Skip to Content
avatar image
Former Member

fields with number

as I can do to make this field only receive numbers??

Sin título.png (91.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 03, 2015 at 07:40 PM

    Hi Marlon Steven,

    no not as I know. But you could catch KeyDownBefore/After... Event

    in this event you could check the character ... and do what you want to do...

    But most of this handling is done automatically ... by using the right Datasource... like you see at Datetime... there is no choice as well and you see the correct handling of Date... If you use the numeric datasource you will have the correct values. If you using DB Fields you should be aware of setting the correct subtype.

    But you are still able to type alpha into "numeric" fields (binding)... but you could not leave the field until you type values...

    EditText Fields just alpha... there is nothing different there. SDK Help search for BoFormItemTypes

    If you want to change this... catch the event.

    Regards

    Oliver

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 04, 2015 at 12:46 AM

    Hi Marlon,

    Bind it to a numeric datasource.

    Regards

    Edy

    Add comment
    10|10000 characters needed characters exceeded