In clipper/xharbour we have had a 'Log' system based around a dbf opened at
application start up.
We have simple functions like LogSuccess( "my message", { some values } ) or
LogError( "my message", { some values } ) ....these use LOG-> alias
technology and work from any prg in the application.
Just trying to write same for Xailer/windows using datasets .... not finding
so easy.
If I create my datasource/dataset by calling a function in my
mainform:Initialize ... it works ok.
But when I move off to another form or use some 'TFormPanel FROM XPanel'
code from Ignacio .... my LOG workarea is OVERWRITTEN by the datasets on the
new form ... so my LogSuccess/Error functions fail.
Dont really want to be attaching & opening LOG datasource/dataset to every
form.
Without 'dataforms', what is the easy way of having global access to a
datasource/dataset. ????
Any thoughts would be appreciated.
Chris
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.
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.
DataSource Dataset 'visible' from different forms in application ??
-
- Mensajes: 384
- Registrado: Mar May 01, 2007 5:49 pm