Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a Read Only Custom Property
Message
From
23/04/1998 06:55:09
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00094263
Message ID:
00094264
Views:
19
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!
----------------------------------
-myron kirby (mkirby2000@gmail.com)-
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform