How can I use Form - OnFindRecord and Form - OnNextRecord???

GRUBBYFANSGRUBBYFANS Member Posts: 154
Form - OnFindRecord(Which : Text[1024]) : Boolean

Form - OnNextRecord(Steps : Integer) : Integer

How It is Insert record? Please give me example,I want to kown its work truth. :-k :-k :-k

Comments

  • garakgarak Member Posts: 3,263
    Do you have use the onlinehelp :?:
    Do you make it right, it works too!
  • GRUBBYFANSGRUBBYFANS Member Posts: 154
    garak wrote:
    Do you have use the onlinehelp :?:
    Yes I have ,but I want you give me example. :P :P
  • rajpatelbcarajpatelbca Member Posts: 178
    the OnFindRecord trigger fires when a form is opened and a record is
    retrieved,
    Experience Makes Man Perfect....
    Rajesh Patel
  • arindomarindom Member Posts: 52
    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 .
  • GRUBBYFANSGRUBBYFANS Member Posts: 154
    arindom wrote:
    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 .

    =D> =D> =D> arindom, Very Good, Thank you
  • ioriiori Member Posts: 19
    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);
Sign In or Register to comment.