Page 1 of 1
Can I clone the cursor of a TVirtualTable ?
Posted: Tue 22 Mar 2016 08:26
by jim papas
Hi,
I want to manipulate a virtual table with two independent cursors (like two independent tables). Is this possible and if yes, is there an example, please ?
TIA
Re: Can I clone the cursor of a TVirtualTable ?
Posted: Tue 22 Mar 2016 08:52
by AlexP
Hello,
Please describe the required functionality in more details.
Re: Can I clone the cursor of a TVirtualTable ?
Posted: Tue 22 Mar 2016 09:13
by jim papas
Let say that i have a VTable in the memory loaded from a file. I set a range on this table but sometimes i need to access some records out of this range. It would be very useful to have a second table component with the same data buffer but different settings.
Something like or better than BDE's DbiCloneCursor
Re: Can I clone the cursor of a TVirtualTable ?
Posted: Tue 22 Mar 2016 09:40
by AlexP
No, there is no such feature in VirtualTable.
Re: Can I clone the cursor of a TVirtualTable ?
Posted: Tue 22 Mar 2016 15:53
by jim papas
At least is there a way to access the field values of another table row without changing the current row
Eg. i want to compare the value of the 3rd field of the current table row (table record) with the value of same field of another row (record).
Since all data are in memory, i suppose that it would be a way to randomly access them without moving from current record. Am i right ?
Re: Can I clone the cursor of a TVirtualTable ?
Posted: Wed 23 Mar 2016 11:12
by AlexP
No, TDataSet - the ancestor of the TVirtualTable class - doesn't allow to implement such behavior.