Strange hang

Robert Sneidar slylabs13 at me.com
Mon Jan 14 23:44:03 EST 2013


Yeah I misunderstood. The only thing you cannot do (and there is/was a request to implement this) is to pass an element of an array as a parameter to a command or function eg. put myFunction(myArray[1]) into bobtest. 

Bob


On Jan 14, 2013, at 5:46 PM, Kay C Lan wrote:

> I take you Wha? and raise to Uh?
> 
> I'm in the process of creating my first BIG multi x multi dimenionsal
> array stack and it's built exclusively on creating, modifying and
> deleting array elements by passing the required info to and from
> handlers as paramaters. It's all working brilliantly at the moment.
> 
> Don't tell me it's going to randomly come crashing down one day.
> 
> 1) New Main Stack
> 2) Add a button
> 3) In to it copy and paste this script:
> 
> local lArray
> 
> on mouseUp
>   put empty into msg
>   hCreateArray 1,10
>   hPrintArray "START ARRAY"
>   hPruneArray "2,4,6,8,10"
>   hPrintArray "END ARRAY"
> end mouseUp
> 
> 
> on hCreateArray pStart, pEnd
>   repeat with x = pStart to pEnd
>      put (20+x) into lArray[x]
>   end repeat
> end hCreateArray
> 
> on hPrintArray pMsg
>   put pMsg & cr after msg
>   repeat for each key tKey in lArray
>      put lArray[tKey] & cr after msg
>   end repeat
> end hPrintArray
> 
> on hPruneArray pList
>   repeat for each item tItem in pList
>      delete local lArray[tItem]
>   end repeat
> end hPruneArray
> 
> Does this not print out the expected result in the message box for you?
> 
> On Tue, Jan 15, 2013 at 3:42 AM, Robert Sneidar <slylabs13 at me.com> wrote:
>> Wha? Pass by parameter? I
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list