DbfDataSet.obj
Publicado: Mié Feb 08, 2006 5:41 pm
Ignacio,
you attached your post from the 24th of January a modified DbfDataSet.obj.
DbfDataSet:Save() is now workiung good.
But the modified DbfDataSet shows a strange behaviour:
I'm using databases filtered with Scopes. If there a r e f e w e r records
shown in the TBrowse as the TBrowse has rows following happens:
1. If the first record is shown on the first row of the TBrowse and has the
focus and I call TDbfDataSet:Edit() the records scrolls up. The focus skips
to the next record.
You can test it with the sample I attach. Set the cursor to the first record
in the first row and then click on the edit-button.
Without the modified DbfDataSet.obj it is ok.
Another problem I have is this:
2. If the last filtered record is shown in the middle of the Browse and I
call TDbfDataSet:Delete() the TDbfDataSet skips correctly one record up but
this record is now shown in the first row of the Browse.
I can not build a sample to demonstrate it. As workaround I have inserted
the two lines:
::oBrw:GoTop()
::oBrw:GoBottom()
Maybe you will find out the cause without a sample.
Regards
Ingo
you attached your post from the 24th of January a modified DbfDataSet.obj.
DbfDataSet:Save() is now workiung good.
But the modified DbfDataSet shows a strange behaviour:
I'm using databases filtered with Scopes. If there a r e f e w e r records
shown in the TBrowse as the TBrowse has rows following happens:
1. If the first record is shown on the first row of the TBrowse and has the
focus and I call TDbfDataSet:Edit() the records scrolls up. The focus skips
to the next record.
You can test it with the sample I attach. Set the cursor to the first record
in the first row and then click on the edit-button.
Without the modified DbfDataSet.obj it is ok.
Another problem I have is this:
2. If the last filtered record is shown in the middle of the Browse and I
call TDbfDataSet:Delete() the TDbfDataSet skips correctly one record up but
this record is now shown in the first row of the Browse.
I can not build a sample to demonstrate it. As workaround I have inserted
the two lines:
::oBrw:GoTop()
::oBrw:GoBottom()
Maybe you will find out the cause without a sample.
Regards
Ingo