Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strong type class properties?
Message
 
To
18/09/2008 12:36:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01348653
Message ID:
01348729
Views:
14
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform