Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Michael Neumann
RE: returning value from a called component [ reply ]  
2005-07-11 09:46
# in your callback:
call YourComponent.new, :return_method

# This method will be called when #answer
# is called inside YourComponent.
def return_method(return_value)
p return_value
end

Of course you can also use code-blocks instead of the :return_method symbol.

By: Yoann Pannier
returning value from a called component [ reply ]  
2005-02-25 11:44
Hi,

I am trying t figure out how values are passed back to a calling component.

It seems that code examples are somewhat outdated and not working anymore within wee 0.7.0, like cc.rb and example.rb where the values returned from MessageBoxes are ignored in the MainPage (as far as i can see).

Could someone point me to (or provide) a working code example to do things like this ? Maybe something simple like getting true or false from a MessageBox or something more complex ?