Matthew Kim,

Show us at least the error message.

If you don't want to also show us the code,
I recommend diagnosing the error by
printing some debug info in your process_msg function:

        process_msg: func [var1 var2][
                ?? var1
                ?? var2
                ...
        ]

Run the program again to see the values of var1
and var2.
Then you can play around with foreach in the
console, using the values for var1 and var2 that
you saw.

Anton.

> Currently the entire program is structured as follows:
> 
> 
> process_msg: func [var1 var2][
>       ...
>       foreach... [
>               if/else ... [
>                       ...
>               ]
>       ]
> 
>       return x
> ]
> 
> layers: func [var1 var2][
>       ...
>       return x
> ]
> 
> cellphone: layout [
>       ...
>       image left_button [
>               output1: layers var1 var2
>               ...
>               if flag == 1 [
>                       output2: process_msg var1 var2
>               ]
>       ]
>       ...
> ]
> 
> view cellphone
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> With "flag = 0", everything seems to work fine. 
> 
> When the flag is changed to "1", the error arises when the "foreach"
> loop within the "process_msg" function is called.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to