[Gambas-user] re turn value from a form

kobolds kobolds at ...2041...
Wed Jan 7 09:19:37 CET 2009


in order to get  return value from a form , I create a variable in the form

in ftest
public retun_value as boolean =false

public sub btnOK_click()
 return_value = true
 me.close
end

public sub btncancel_click()
  return_value = false
  me.close
end

--------------------------------
from Fmain 
public sub btnTest_click()
 dim m_ftest = new ftest
 m_ftest.showmodal
 if m_ftest.return_value = false then
    ......
 endif 
end

when I run I get error object not found on "if m_ftest.return_value = false
then"  . my guess is after the ftest close , the ref memory also gone . this
shouldn't be happen like this right ?


-- 
View this message in context: http://www.nabble.com/return-value-from-a-form-tp21326643p21326643.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list