Help with Arrays??

Arthur Urban aturban at qwest.net
Tue Mar 21 02:39:21 EST 2006


I don't know what the heck is going on here, but I know it's making me a 
wee bit testy. (I don't like needless local variables, what can I say...)

Here's the code that works just fine. Please note that I've confirmed 
the value of x, it is not the problem here. The function returns an Array.

    put MyFunc( x ) into theArray
    DisplayPurchaseLine x, theArray

The following code fails miserably passing empty for theArray argument; 
x is passed in just fine:

    DisplayPurchaseLine x, MyFunc( x )

Why do  I need to put the MyFunc() return value (an array) into a local 
variable first. It clearly makes it out of the function call, but cannot 
then immediately be used as a parameter. Huh?




More information about the Use-livecode mailing list