Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assign method problem
Message
From
15/06/2000 18:06:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Assign method problem
Miscellaneous
Thread ID:
00381071
Message ID:
00381071
Views:
63
Ok,

I must not be understanding something here.

I have a class with a property - MyProp. I have a MyProp_assign method. I have a public method SetMyProp() that sets MyProp to a value. The idea is that calling SetMyProp() will "go through" MyProp_access for some validation. All this is in one class - no subclasses involved.

if MyProp is public or protected - then issuing SetMyProp('value') correclty calls the MyProp_assign() method. However if MyProp is hidden - then SetMyProp does NOT make MyProp_assign fire even though MyProp gets changed correctly. The Public/Proitected/Hidden of the MyProp_assign() method seems to make no difference.

I do not understand what is going on here. The MyProp_assign() method SHOULD have access (no pun intended) to MyProp - so why is it not firing? I want MyProp hidden so that future subclasses can not change it directly.

Thanks,
Ken
Ken B. Matson
GCom2 Solutions
Next
Reply
Map
View

Click here to load this message in the networking platform