PRB: Protected Property Cannot be Changed by Objects in a Class (155261)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q155261 SYMPTOMS
An Object that was added to a class at design time will not be able to
modify a protected property or method of the class. If it tries, it will
fail with the following error:
"Property is not found"
WORKAROUND
In order to allow an object in a class to modify protected properties of a
class, you will need to create public methods for your objects to call and
then have the method change the protected properties.
STATUS
This behavior is by design.
REFERENCES
For more information about how inheritance affects protected properties,
please see the following article in the Microsoft Knowledge Base:
128633 How Inheritance Affects PROTECTED Methods and Properties
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | KB155261 |
---|
|