[Gambas-user] Return variable from dialog

Rohnny Stormo rohnny at ...1248...
Sat Jan 7 15:30:13 CET 2006


Hi group.

How can I return a value from a dialog or modal form.
Form1 call form2, when form2 close it do return a value.

Tried this but not allowed.

STATIC PUBLIC FUNCTION Run() AS Long
  DIM hForm AS FpopupVarer

  hForm = NEW FpopupVarer
  hForm.ShowModal()
  RETURN varenr
END

and after study, it seems like this does not going to work. After 
Showmodal has ended
the variable varenr are dead.


Regards Rohnny





More information about the User mailing list