Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SETFOCUS in
Message
De
04/10/2003 12:12:42
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
SETFOCUS in
Divers
Thread ID:
00835117
Message ID:
00835117
Vues:
47
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
Fil
Voir

Click here to load this message in the networking platform