Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is always active, regardless anything
Message
From
21/03/2001 17:08:04
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00487280
Message ID:
00487412
Views:
10
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform