help with a runmodal process

uri84
uri84 Member Posts: 30
Hi,

I have a function that calls one form with this code :


FormSales.SETTABLEVIEW(Rec);
FormSales.SETRECORD(Rec);
FormSales.LOOKUPMODE := TRUE;

COMMIT;
IF FormSales.RUNMODAL=ACTION::OK THEN BEGIN



END;

this form that i call have three variables with a text box that i want to save .

what i have to do , when i close the form to get the three vars that i put in the form?

thanks!

Comments

  • IsakssonMi
    IsakssonMi Member Posts: 77
    I guess you could make a public method in the form that takes VAR parameters and assign them from there.
  • matttrax
    matttrax Member Posts: 2,309
    You need to create a variable that points to your form instead of using the FORM.RUNMODAL syntax. Then you can call a function in that form object to return the values.

    Also, that COMMIT doesn't appear to be doing anything. You should be able to take it out.