Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
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