Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Looking for help with SETFOCUS() and valid.
I have a form with textboxes and comboboxes that validate input and call a modal 'subform' for the particular data element, allowing the user to manage the list of valid entries (including adding, editing or deleting those list items, allowing with any appropriate detail). The 'subform' uses a grid for display and navigation and several methods of the form need to be able to set the focus on the grid.
This is a refinement of a simple 'value entered not found, would you like to add it?' approach for more complex data elements.
Unfortunately, I cannot call the SETFOCUS() method of the subform's grid if the subform itself is called by the VALID() of a control on the main form.
Returning a numeric value in the VALID() won't work , because the SETFOCUS() occurs "off" the main form, so there is no taborder to reference.
Doing the validation in the LOSTFOCUS() won't work because I can't set focus to the same control after the subform is finished, and that control has already lost focus. So, if the value in the main form control is not correct after the subform executes, there is no way (that I can see) to validate.
Any ideas greatly appreciated.
Blue Skies!
Joe
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement