Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DISABLED / ENABLED
Message
From
28/11/2000 16:44:27
 
 
To
28/11/2000 16:24:02
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00446437
Message ID:
00446472
Views:
7
>>If you do not get an error message, it probably indicates that you have default code somewhere that pur enabled back. Check whether your code This.Button.ENABLED = .F. works. Just add [wait wind time 2.0] after it to see whether button is disabled andthen enabled back.
>
>Error says "Unknown member BUTTON"

Chuck,

When you address an object you must use the actual object path and name of the object - IOW, just because the advice was "try this.Button.Enabled = .F." does not mean that the exact suggestion will work. "this.Button" should be replaced with "thisform.cmdNext" or whatever the actual object path and actual name of the button is. If the object is not on the form, then you need to include the container as well, e.g., "thisform.cntNavButtons.cmdNext.Enabled = .F."

To see the full object path to the object, right-click in a method code window and select Object List. From the list that comes up, select the desired object. The full object path will be pasted into the code.

FWIW, there is no need to repost the same question again when you get an unsatisfactory answer. Simply reply to the unsatisfactory answer with (e.g.) "I tried your suggestion and it didn't work." Preferably with exactly what didn't work (error messages received, etc).
Whoever gave you that answer may need to give you a fuller explanation of what needs to be done, or may need to get a fuller explanation of the issue.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform