I have a UF with textbox, comboboxes, control buttons, etc.
The form required information to be add.ed to the entry controls.
I am using the _Change and _AfterEvent events to pull in the text added, perform checks, etc.
I generally use the TabStop and TabIndex properties to 'move' the cursor to the next control so the user can use the TAB key to progress through the form.
This presents problems though when a textbox requires a specific entry, e.g. a date format. If the entry isn't recognised as a date format (I am using the REPLACE function to replace any full stop/dots with a slash but I can't do anything for an entry such as '23st maar 203'), I want the entry to be removed and the that control retain focus. Using TabIndex and TabStop moves the focus to the next control which when a valid entry is added, I want to happen but I don't if an invalid entry has been added.
I have never been able to devise anything that allows this and it has always bugged me that there isn't any kind of _OnFocus event available for a control.
TIA
The form required information to be add.ed to the entry controls.
I am using the _Change and _AfterEvent events to pull in the text added, perform checks, etc.
I generally use the TabStop and TabIndex properties to 'move' the cursor to the next control so the user can use the TAB key to progress through the form.
This presents problems though when a textbox requires a specific entry, e.g. a date format. If the entry isn't recognised as a date format (I am using the REPLACE function to replace any full stop/dots with a slash but I can't do anything for an entry such as '23st maar 203'), I want the entry to be removed and the that control retain focus. Using TabIndex and TabStop moves the focus to the next control which when a valid entry is added, I want to happen but I don't if an invalid entry has been added.
I have never been able to devise anything that allows this and it has always bugged me that there isn't any kind of _OnFocus event available for a control.
TIA