Update a global when going to a stack as modal

Thierry Arbellot thierry.arbellot at wanadoo.fr
Thu Jan 8 06:38:14 EST 2004


Mark,

I'm doing the same thing as you are, and it does work fine (Rev 2.1, 
MacOS X, Win2K)

I use a global to return a value when the modal is closed.

a suggestion:
replace line 3 with answer gFoo
The answer dialog should appear only after the modal is closed.

Hope it helps.

Thierry.

On Thursday, Jan 8, 2004, at 00:40 Europe/Paris, Mark Powell wrote:

> Hi Sarah:
>
> Alas, I am declaring it in both place.  Have you done this specific 
> thing
> successfully in the past?
>
> BTW, since I posted this message I have tried "sheet stack B" instead 
> of "go
> to stack B as modal" and it s.e.e.m.s to work, but I would prefer to 
> use the
> 'as modal' method.
>
> Mark
>
> -----Original Message-----
> From: Sarah Reichelt [mailto:sarahr at genesearch.com.au]
>
> Are you sure you are declaring gFoo as a global in BOTH places?
> ...
>
> ============ S N I P ============
>
> On 8 Jan 2004, at 7:42 am, Mark Powell wrote:
>
> I have a handler in stack A of the pseudo form below
>   ...
>   LINE 1 <put "Before" into global gFoo>
>   LINE 2 <go to stack B as modal; user input there goes into gFoo>
>   LINE 3 <put gFoo into fld "Information" of stack A>
>   ...
>
> The text that is put into the field on stack A is inevitably "Before".
> However, if I immediately type
>
>   put gFoo into fld "Information"
>
> the data that was collected in stack B is put into the field in stack 
> A as
> expected.  The global is populated as I would want, except it is as if 
> line
> 3 above is run before line 2.  What is going on?  Can I not switch 
> between
> stacks and collect data?  Is there a workaround?
>
> Mark
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list