Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little competition :-)
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
A little competition :-)
Miscellaneous
Thread ID:
00729533
Message ID:
00729533
Views:
48
Hi, folks!

Here is a little "competition" <vbg>:

I have a class called "MyButton" with a property "xyz"!

In the refresh event I put the following code:
PROC Refresh
WITH This
	DO CASE
	CASE ISNULL(.xyz)
		* nothing to do
	CASE .xyz = .T.
		* set enabled state to the same value of forms editmode
		.Enabled = ThisForm.lEditMode
	CASE .xyz = .F.
		* set enabled state to the opposite value of forms editmode
		.Enabled = (NOT ThisForm.lEditMode)
ENDWITH
ENDPROC
Now the question: What is a good, proper, correct name of the property "xyz"?
SeBaFlu
Next
Reply
Map
View

Click here to load this message in the networking platform