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.

DataSet : Right Techniques

Xailer professional forum in English
Responder
Milan Mehta
Mensajes: 134
Registrado: Dom Dic 27, 2009 9:54 am

DataSet : Right Techniques

Mensaje por Milan Mehta »

Dear All,
In my typical application, I am required to open a set of DBF files using
DBFCDX RDD.
I normally create dataset of these DBF files in PRG and use the same
whenever I require it.
But now situation has arised where, I have to open the same DBF file
multiple times.
My question is :
1. Is it alright to open same DBF file multiple times ?
2. If yes, should I create a new instance of the dataset by my above Class
which open all DBF files ?
Kindly guide me if possible with Sample code, for the best practices as
regards DATASETS..
TIA
Milan.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9259
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

DataSet : Right Techniques

Mensaje por ignacio »

Milan,
>>1. Is it alright to open same DBF file multiple times ?
Yes. You just need to give different aliases, that's all.
>>2. If yes, should I create a new instance of the dataset by my above Class
>>which open all DBF files ?
Yes to create a new instance of TDbfDataset. The way to do it is not
important.
BTW, take a look at the method TDataset:Clone()
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Milan Mehta" escribió en el mensaje de
noticias:[email=4cf3c395@svctag-j7w3v3j....]4cf3c395@svctag-j7w3v3j....[/email]
Dear All,
In my typical application, I am required to open a set of DBF files using
DBFCDX RDD.
I normally create dataset of these DBF files in PRG and use the same
whenever I require it.
But now situation has arised where, I have to open the same DBF file
multiple times.
My question is :
1. Is it alright to open same DBF file multiple times ?
2. If yes, should I create a new instance of the dataset by my above Class
which open all DBF files ?
Kindly guide me if possible with Sample code, for the best practices as
regards DATASETS..
TIA
Milan.
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder