var
LastNo, ThisNo: integer;
//lastno ÉÏÒ»Á÷³ÌºÅ thisno ±¾Á÷³ÌºÅ
BookMark1: Tbookmark;
//ÊéÇ©
begin
//ÉÏÒÆÊý¾Ý
with FlowQ do
begin
ThisNo := FieldByName('F_Step_NO').Asinteger;
Prior;
BookMark1 := GetBookMark;
if not Bof then //µ±Î´µ½Ê×Ìõ¼Ç¼
begin
Edit;
LastNo := FieldByName('F_Step_NO').Asinteger;
FieldByName('F_Step_NO').Asinteger := ThisNo;
Next;
Edit;
FieldByName('F_Step_NO').Asinteger := LastNo;
Post;
Close;
Open;
GoToBookMark(BookMark1);
FreeBookMark(BookMark1);
end;
end;
var
NextNo, ThisNo: integer;
//nextno ÏÂÒ»Á÷³Ì±àºÅ thisno ±¾Á÷³Ì±àºÅ
BookMark1: Tbookmark;
//¶¨ÒåÊéÇ©
begin
//ÏÂÒÆÊý¾Ý
with FlowQ do
begin
ThisNo := FieldByName('F_Step_NO').Asinteger;
Next;
BookMark1 := GetBookMark;
if not Eof then//µ±Î´µ½Î²¼Ç¼
begin
Edit;
// FieldByName('runtime').asinteger:=strtoint(timedbedit.text);
NextNo := FieldByName('F_Step_NO').Asinteger;
FieldByName('F_Step_NO').Asinteger := ThisNo;
Prior;
Edit;
FieldByName('F_Step_NO').Asinteger := NextNo;
Post;
Close;
Open;
GoToBookMark(BookMark1);
FreeBookMark(BookMark1);
end;