Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a Read Only Custom Property
Message
 
To
23/04/1998 06:55:09
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00094263
Message ID:
00094267
Views:
17
That's exactly what I did but it seems a bit of an overkill to create a method to return a property value instead of just looking at the property value!

>Leave the property protected and then create a custom method (i.e. RdSecLev) to read and return the value. Then
>when you want the value of the property use a call to the method (i.e. lcSecLev = oSec.RdSecLev).
>
>-myron kirby-
>myronk@flash.net
>================================
>>Is there any way of creating a read-only custom property in a subclass? I have tried setting the property to Protected, but in the exe it is not found. I am populating the property via a method in the same subclass and want to compare the contents at different intervals but I want the property to be read-only. The only way of reading the contents would be to make it public - I don't want that!
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform