When you refresh the current table, how do you go back to where you were last time you refreshed it?

Source: Internet
Author: User

First:

The line number where you saved the location before you refreshed it

Procedure Xxxclass.lockpositionex;
Begin
Disablecontrols;

Fhistoryrecno: = 0;
Fhistoryindexname: = EMPTYSTR;
If Active Then
Begin
If IndexName <> EmptyStr Then
Fhistoryindexname: = IndexName;
IndexName: = EMPTYSTR;

If not IsEmpty then
if (state in [Dsedit,dsinsert]) then
FHISTORYRECNO: =-1
Else
Fhistoryrecno: = RecNo;
End
End

Navigate to New line number after second refresh


Procedure Xxxclass.unlockpositionex;
Begin
If Active Then
Begin
If not IsEmpty then
If Fhistoryrecno < 0 then//process Edit status, skip directly to the last record
Last
else if Fhistoryrecno = 0 Then
First
else if fhistoryrecno > 0 then//
Begin
If RecordCount >= Fhistoryrecno Then
RecNo: = Fhistoryrecno
else if RecordCount > 0 Then
Last;
End

If Fhistoryindexname <> EmptyStr Then
Begin
IndexName: = Fhistoryindexname;
Fhistoryindexname: = EMPTYSTR;
End
End

Enablecontrols;
End

When you refresh the current table, how do you go back to where you were last time you refreshed it?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.