Find(which)

upasanisandipupasanisandip Member Posts: 405
edited 2006-04-10 in Navision Attain
Hi ,
I am understanding the find(which ) means what?

Form - OnFindRecord(Which : Text[1024]) : Boolean
IF FIND(Which) THEN
EXIT(TRUE)
ELSE BEGIN
SETRANGE("No.");
EXIT(FIND(Which));
END;


Thanks in adv.

Sandip.

Comments

  • kinekine Member Posts: 12,562
    This trigger is called from the form when form is searching for some record. Which is parameter ('<' '>' '<=' etc.). This code is there because:

    if you set filter for primary key (for example customer no.) on card form, you close this form, someone delete the record with this no. and after that if you will try to open the card, you will have error. This code will in this case reset the filter and the form will be opened correctly.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.