In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

AppData

Xailer professional forum in English
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

AppData

Mensaje por Nick Hilder »

Howdy
I have been working on a rather big project and created a heap of classes. I
couldn't get them to show up in the debugger, and I knew I had seen someone
ask this question. Anyway I dug around and found a post stating that you
must inherit TComponent and use Property.
I had used Property everywhere, so all I had to add was the FROM TComponent
and all my objects started showing up
I have been making extensive use the TAppData class, keeping all my base
settings in here, it works a treat.
The Problem I have now found is AppData doesn't inherit TComponent and you
can only add DATA's to it
So, can I just change XailerSourcesAppData.prg so that XAppData Inherits
from TComponent (I think this is bad, because an Xailer update would breeak
this )
Can I add a Method to my TAppData class that I have derived from XAppData
that allows me to add properties, instead of Data's?
Also, and this is easy, can you please put a "The Debugger " section under
the OOP section in the help that explains the needs for classes to inherit
from TComponent and fields etc must be Properties if you want them visible.
Cheers
Nick
Responder