Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create an object in a class
Message
 
To
02/02/2006 04:22:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01092108
Message ID:
01093132
Views:
26
Hi Holger,

It works, that's exactly what I wanted to. Thanks.



>Hi Zakaria,
>
>
>oPerson = createobject("Person")
>oTime = createobject("Time")
>oPerson.Init(oTime)
>oPerson.GetAge()
>
>
>this is not the way to pass parameters to the INIT event of an object.
>The INIT is an event and not a method thats intended to be called by the developer.
>Its called/fired automaticly during the creation process of that object. If you want to pass one or more parameters, you should use the additional parameters of the createobject() function.
>
>
>oTime = createobject("time")
>oPerson = createobject("person", oTime)
>
Zakaria al Azhar
My blog on Actuaris.net
Previous
Reply
Map
View

Click here to load this message in the networking platform