Página 1 de 1

TAppData

Publicado: Jue May 31, 2007 1:47 pm
por Capsol Coder
I have been reading more the Xailer Help and found the AppData class.
Can I inherit this Class?
I would like to extend it so that I can not only add data to it, but also
add methods to read and write the data to a config file.
it says it's only instantiated once, is this a problem.
I'm thinking I can just do this
Class TAppData from XAppData
Property x
Property y
Method SaveConfig()
Method LoadConfig()
End Class

TAppData

Publicado: Jue May 31, 2007 9:23 pm
por jfgimenez
Capsol,
>I have been reading more the Xailer Help and found the AppData class.
>
> Can I inherit this Class?
Yes, of course.
> I would like to extend it so that I can not only add data to it, but also
> add methods to read and write the data to a config file.
>
> it says it's only instantiated once, is this a problem.
There is no problem at all. That's the magic of "classes X and Y duality".
You may redefine the T class inheriting from its X one, and Xailer will
recognize it correctly.
> I'm thinking I can just do this
>
> Class TAppData from XAppData
>
> Property x
> Property y
>
> Method SaveConfig()
> Method LoadConfig()
>
> End Class
It should work fine.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

TAppData

Publicado: Vie Jun 01, 2007 1:38 am
por Capsol Coder
Thats a great feature, thanks
I'd like to thank you guys again for the level of documentation you have
provided. It may not always be perfectly clear in english, but the main
thing is "it there"
Cheers
Nick
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:[email=465f20cd@ozsrv2.ozlan.local...]465f20cd@ozsrv2.ozlan.local...[/email]
> Capsol,
>
>>I have been reading more the Xailer Help and found the AppData class.
>>
>> Can I inherit this Class?
>
> Yes, of course.
>
>
>> I would like to extend it so that I can not only add data to it, but also
>> add methods to read and write the data to a config file.
>>
>> it says it's only instantiated once, is this a problem.
>
> There is no problem at all. That's the magic of "classes X and Y duality".
> You may redefine the T class inheriting from its X one, and Xailer will
> recognize it correctly.
>
>
>> I'm thinking I can just do this
>>
>> Class TAppData from XAppData
>>
>> Property x
>> Property y
>>
>> Method SaveConfig()
>> Method LoadConfig()
>>
>> End Class
>
> It should work fine.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>

TAppData

Publicado: Vie Jun 01, 2007 12:03 pm
por ignacio
Capsol,
Thanks. BTW, any advice to make it more clear and less spanglish is highly
welcome.
Regards,
"Capsol Coder" <nick__NOSPAM__@capsol.com.au> escribió en el mensaje
news:[email=465f5c7f@ozsrv2.ozlan.local...]465f5c7f@ozsrv2.ozlan.local...[/email]
> Thats a great feature, thanks
>
> I'd like to thank you guys again for the level of documentation you have
> provided. It may not always be perfectly clear in english, but the main
> thing is "it there"
>
> Cheers
>
> Nick
>
> "Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
> news:[email=465f20cd@ozsrv2.ozlan.local...]465f20cd@ozsrv2.ozlan.local...[/email]
>> Capsol,
>>
>>>I have been reading more the Xailer Help and found the AppData class.
>>>
>>> Can I inherit this Class?
>>
>> Yes, of course.
>>
>>
>>> I would like to extend it so that I can not only add data to it, but
>>> also add methods to read and write the data to a config file.
>>>
>>> it says it's only instantiated once, is this a problem.
>>
>> There is no problem at all. That's the magic of "classes X and Y
>> duality". You may redefine the T class inheriting from its X one, and
>> Xailer will recognize it correctly.
>>
>>
>>> I'm thinking I can just do this
>>>
>>> Class TAppData from XAppData
>>>
>>> Property x
>>> Property y
>>>
>>> Method SaveConfig()
>>> Method LoadConfig()
>>>
>>> End Class
>>
>> It should work fine.
>>
>> --
>> Regards,
>>
>> Jose F. Gimenez
>> http://www.xailer.com
>> http://www.xailer.info
>>
>
>