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)
>