Hi, Mark!
>>
The name of the property should be something meaningful to you and whoever has to maintain your code should you pass it on to someone else.
<<
That was my idea!
>>
I would call it lUseFormEditStatus.
<<
Sounds not so good <s>, because this property says to the Enabled state of the button:
- If property = .T. -> button is enabled/disabled when ThisForm.lEditMode is enabled/disabled (e.g. a "save" button or a "revert" button)!
- If property = .F. -> button is disabled/enabled when ThisForm.lEditMode is enabled/disabled(e.g. a "edit" button or a "next" button)!
- If property = .NULL. -> no dependency between Button.Enabled and ThisForm.lEditMode!
Now the question again: What is a good name <vbg>?
>>
You are missing the ENDCASE. I would have code more like:
<<
Oooops - you're right!
SeBaFlu