Página 1 de 1

DataSource Dataset 'visible' from different forms in application ??

Publicado: Vie Abr 17, 2009 5:12 pm
por ChrisGillard
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