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.
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user