[Gambas-user] life of an object

Hugo htakada at ...626...
Wed Nov 30 22:44:56 CET 2005


Hi,
when a form is closed , can I still get some atributes of it , or is it
garbage collected right after one closes it, trouble is I need to get some
data from a form I show to the user.
I do something like this:
sub getAnswerFromUser()
  Dim frm as SomeForm
  dim st as string
  frm = NEW SomeForm
  frm.title = 'Some Title'
  frm.show()
  st = frm.someAtt    'at this point a get Invalid Object runtime error
  return st 'this should be the answer
end
is this code correct ?

thanks for any help
Hugo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20051130/29515d88/attachment.html>


More information about the User mailing list