Form - OnNextRecord(Steps : Integer) : Integer This is use to select next record of a form . lets
Example ........ In a table you have record 1,2,3,4,5 etc .you want to see (from form ) record 1 then 3 then 5 and 2 ,4 will be skip .at that time you will write code OnNextRecord(Steps : Integer) and mention step:=2.
we write code OnNextRecord(Steps : Integer) when we have to do some thing with the next record of the table .
Form - OnNextRecord(Steps : Integer) : Integer This is use to select next record of a form . lets
Example ........ In a table you have record 1,2,3,4,5 etc .you want to see (from form ) record 1 then 3 then 5 and 2 ,4 will be skip .at that time you will write code OnNextRecord(Steps : Integer) and mention step:=2.
we write code OnNextRecord(Steps : Integer) when we have to do some thing with the next record of the table .
sample record:
both in OnFindRecord and OnNextRecord:
OnFindRecord:
TmpRec.COPY(Rec);
IF NOT TmpRec.FIND(Which) THEN
EXIT(FALSE);
Rec :=TmpRec;
EXIT(TRUE);
OnNextRecord:
TmpRec.COPY(Rec);
CurrSteps :=TmpRec.NEXT(Steps);
IF CurrSteps <>0 THEN
Rec := TmpRec;
EXIT(CurrSteps);
Comments
retrieved,
Rajesh Patel
Example ........ In a table you have record 1,2,3,4,5 etc .you want to see (from form ) record 1 then 3 then 5 and 2 ,4 will be skip .at that time you will write code OnNextRecord(Steps : Integer) and mention step:=2.
we write code OnNextRecord(Steps : Integer) when we have to do some thing with the next record of the table .
=D> =D> =D> arindom, Very Good, Thank you
both in OnFindRecord and OnNextRecord:
OnFindRecord:
TmpRec.COPY(Rec);
IF NOT TmpRec.FIND(Which) THEN
EXIT(FALSE);
Rec :=TmpRec;
EXIT(TRUE);
OnNextRecord:
TmpRec.COPY(Rec);
CurrSteps :=TmpRec.NEXT(Steps);
IF CurrSteps <>0 THEN
Rec := TmpRec;
EXIT(CurrSteps);