Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus Problem
Message
De
05/03/1999 11:28:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
SetFocus Problem
Divers
Thread ID:
00194526
Message ID:
00194526
Vues:
47
Here's an easy one:

I have an object on a form where I'd like to have the user enter a value, call a form method that searches a table for a valid record, if a record is found enable the other objects on the form ELSE display a messagebox saying the value can't be found and setfocus back to the original object for re-entry. The problem is I can't seem to setfocus back to the original object, I keep going to a command button on the form. I've tried setting focus through the objects valid method but I can't use setfocus with that method so I RETURN 0 or .f., doing this still takes me to the command button. I tried using THISFORM.object.SetFocus in the lostfocus method of the object with the same result. Any hints would be appreciated.
TIA

/Chris
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform