How can a Form return a value?

xina_manxina_man Member Posts: 116
Hello!

I'm genereting a form to make simple calculations. and want it to retur a value to a certain fiel on another form.
How can I return the variable that is the result of the calculations to a REC.Field in the form that I've used to call the calculation one??

Thanks in advance!

Answers

  • matttraxmatttrax Member Posts: 2,309
    Try passing the record by reference to the form. You can do your calculations and set the field on the new form.
  • xina_manxina_man Member Posts: 116
    matttrax wrote:
    Try passing the record by reference to the form. You can do your calculations and set the field on the new form.

    Thank you for your indications matttrax but I've made it using another solution...

    I've created a function on the form that returns the value of the calculations. I'm using a FORM.RUNMODAL Action to call that function and return CalcValue (EXIT (CalcValue)).

    Best Regards!
Sign In or Register to comment.