Subject | RowNum behaviour |
---|---|
Author | Gediminas |
Post date | 2004-02-13T18:14:35Z |
just found out strange RowNum (RecNo) behaviour, code:
mpDataset->Last();
mpDataset->Insert();
....
mpDataset->Post();
mpDataset is empty: RowNum=1, EofRowNum=1, code called
->Last(): RowNum=0, EofRowNum=1
->Insert(): RowNum=1, EofRowNum=2
mpDataset has 1 record, code called again, RowNum=1, EofRowNum=2:
->Last(): RowNum=1, EofRowNum=2
->Insert(): RowNum=1, EofRowNum=3
mpDataset has 2 records, code called again, RowNum=1, EofRowNum=3:
->Last(): RowNum=2, EofRowNum=3
->Insert(): RowNum=2, EofRowNum=4
Why second Insert() call hasn't incremented RowNum (EofRowNum was
incremented)? is this fixed in the latest IBO version?
Using IBO 4.2Ie, dataset - TIB_Query type
--/ Gediminas /--
The Truth Is Out There
mpDataset->Last();
mpDataset->Insert();
....
mpDataset->Post();
mpDataset is empty: RowNum=1, EofRowNum=1, code called
->Last(): RowNum=0, EofRowNum=1
->Insert(): RowNum=1, EofRowNum=2
mpDataset has 1 record, code called again, RowNum=1, EofRowNum=2:
->Last(): RowNum=1, EofRowNum=2
->Insert(): RowNum=1, EofRowNum=3
mpDataset has 2 records, code called again, RowNum=1, EofRowNum=3:
->Last(): RowNum=2, EofRowNum=3
->Insert(): RowNum=2, EofRowNum=4
Why second Insert() call hasn't incremented RowNum (EofRowNum was
incremented)? is this fixed in the latest IBO version?
Using IBO 4.2Ie, dataset - TIB_Query type
--/ Gediminas /--
The Truth Is Out There