Página 1 de 1

DataSet : Right Techniques

Publicado: Lun Nov 29, 2010 4:15 pm
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.

DataSet : Right Techniques

Publicado: Lun Nov 29, 2010 7:09 pm
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.