Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create an object in a class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01092108
Message ID:
01093723
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform