How to pass a message to a substack (or back)?

Eric Chatonet eric.chatonet at sosmartsoftware.com
Fri Aug 26 13:37:27 EDT 2005


Hi Gabo,

You could check the following entries in the docs:

modal - command
dialogData - property

This combination will let you to run a handler displaying a custom  
window (using the modal command) where the user will have to make a  
choice to go on, then get back his choice (using the dialogData) in  
the same handler and finally perform the process you want according  
to the value of the dialogData.

Le 26 août 05 à 19:22, Gajo Csaba a écrit :

> I have the main stack, and when I want to add a new item to a list a
> new dialog/substack is opened. Here the user can enter some
> information, and when he clicks on the OK button I want to send that
> information back to the main stack, so it would appear in the list.  
> How
> can I do it?
>
> I tried declaring a variable global but it seems I overestimated its
> globality, cause the other script can't see it. I also tried  
> creating a
> message in one stack, and then I call that from another stack, but the
> message can't be found from there.

Best Regards from Paris,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------




More information about the use-livecode mailing list