Update form in a loop

LeoNavLeoNav Member Posts: 55
Hi,

I have the following function in a form :
Cpt:=0;

CLEAR(F_JobList);
F_JobList.SETTABLEVIEW(T_Job);
F_JobList.SETRECORD(T_Job);
F_JobList.LOOKUPMODE(TRUE);

CurrForm.SETSELECTIONFILTER(T_Job);

IF T_Job.FINDSET THEN

  REPEAT
    Cpt:=Cpt+1;
    MESSAGE('%1',Cpt);
    
    T_Eligible56204.INIT;

    T_Eligible56204."Qualification Code" :=QualificationCode;
    T_Eligible56204.Type := T_Eligible56204.Type::Job;
    T_Eligible56204.Code := T_Job."No.";
    T_Eligible56204.Name := T_Job.Description;
    T_Eligible56204.INSERT;
    
    !!!!!! UPDATE HERE !!!!

      
  UNTIL T_Job.NEXT = 0;

 CurrForm.CLOSE;

I would like to update an other form each time the loop works.

I tried to create a function refresh like this :
Refresh ()

currForm.UPDATE(FALSE);

But it doesn't seem to work.

Answers

  • FlorisB1984FlorisB1984 Member Posts: 17
    Hi Leonav,

    Did you try currForm.updatecontrols? perhaps that solves it.

    best regards,

    Floris
Sign In or Register to comment.