Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create an object in a class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01092108
Message ID:
01093723
Views:
16
Thanks David for the explanation.
>
>>That is how it's done in c#. I want to do this in visual foxpro. But I am asking myself if there are better OOP techniques. Furhermore is the above a known OOP Pattern, so yes how is it called. Moreover how would you set it up in foxpro? Especially using foxpro flexibility to model the data, which in c# can't be done easily . For example modeling the Insured data would just need a table or cursor with fields like "Name","Age","EndAge",... With just a scatter memvar you can make an object of it and pass it as an object in the above chain, am I right?
>
>Yes, it's very easy to create a data object like this and pass it around your system. I can either be just a short lifetime LOCAL object:
>
>
>local loData
>
>scatter name loData memo
>
>
>or it can be a property of your class itself:
>
>
>scatter name this.oInsuredData memo
>
>
>
>>Sorry for the lengthy message and my poor enlish.
>
>Your English is quite good.
Zakaria al Azhar
My blog on Actuaris.net
Previous
Reply
Map
View

Click here to load this message in the networking platform