Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strong type class properties?
Message
 
À
18/09/2008 12:36:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01348653
Message ID:
01348729
Vues:
15
>>Is it possible to strongly type properties in a prg based class?
>
>What's the idea of strong typing? Avoiding that somebody assigns the wrong type, I believe.
>
>If that is all, just use an Assign method. This method will intercept any value assigned to the property.

The objective is actually to enable intellisense. I posted a question about it yesterday. Basically, I have a a base class that derives 2 or more different classed. I have another class that performs a function by creating the appropriate derivative of the base class. I want to be able to call the master class and get intellisense on the property, but the property object won't actually be instantiated until the init of the master class.

I detailed it in this thread # 1348352

I think if I can strongly type the property based on the base class, then the intellisense would work. It doesn't look like it can be done, though.
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform