Options

help with a runmodal process

uri84uri84 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

  • Options
    IsakssonMiIsakssonMi Member Posts: 77
    I guess you could make a public method in the form that takes VAR parameters and assign them from there.
  • Options
    matttraxmatttrax 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.
Sign In or Register to comment.