Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a Read Only Custom Property
Message
De
23/04/1998 06:55:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00094263
Message ID:
00094264
Vues:
20
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)-
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform