Skip to Content
author's profile photo
Former Member

et_LOST_FOCUS problem

Hi, I need to validate the content of an edit control. To do this, I trap the loas focus event of the control and I do my validation. When needed, I reformat the information and put it back to the edit control. Instead of having the new value in the control and the focus to the next control, I got an endless loop on the edit control. Can someone tell me what I do wrong?

Claude Bissonnette

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 05, 2004 at 04:44 PM

    I generally find that the et_VALIDATE event is more appropriate for adding custom validation checks and where appropriate re-formatting data.

    In some cases setting BubbleEvent to false may be appropriate to help prevent endless loops.

    For a code sample have a look at the topic "Formatted Search screen - populate multiple fields". The example I posted there is more complex, but includes among other things validating an edittext and potentially changing its value. Hopefully it will be of some use to you.

    Regards,

    John.

    Add comment
    10|10000 characters needed characters exceeded