Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is always active, regardless anything
Message
De
21/03/2001 17:08:04
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00487280
Message ID:
00487412
Vues:
8
SELECT auth
COUNT FOR id = m.id TO ct
SELECT person
IF ct > 0
	ThisForm.Commandgroup1.Command4.ENABLED = .F.
ELSE
	ThisForm.Commandgroup1.Command4.ENABLED = .T.
ENDIF
This is what I have in the listbox's Refresh (Command4 is the 'Delete' button). It works just about right, but now when I click the 'Edit' button, it enables the 'Delete' button (which is not good), but when I click the 'Add' button, it does not enable the Delete button (which is good). I tried GotFocus, it's useless (I don't know what it is, but am using LostFocus for something else). I will have to look at it somemore, but thanks for pointing it out to help me start.

Chuck

>I put such code in the refresh method of the buttons. Any event that should affect the enabled property of any object refreshes the form, or the objects that are affected.
Today is tomorrow's yesterday.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform