problem with brackets in script editor

Bob Sneidar bobs at twft.com
Tue Mar 10 11:55:46 EDT 2009


Well that's odd, it compiled and ran perfectly for me just as it was!

Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Mar 10, 2009, at 8:01 AM, Richard Gaskin wrote:

> Andre.Bisseret wrote:
>
>> In order to keep trying Data Grid, I have to learn about « arrays
>> » (that I did not use up to now ).
>>
>> Well, I am reading the  article from Tom Healy « Arrays Examined » in
>> revUp, 57,  sept 26 2008.
>>
>> First trial : first example from Tom :
>>
>> ---------
>>
>> local tShoppingList,
>>
>> put "Apple" into tShoppingList[Fruit]
>>
>> put "Cornflakes" into tShoppingList[Cereal]
>>
>> put "Carrot" into tShoppingList[Veg]
>>
>> put "Lemonade" into tShoppingList[Drink]
>>
>> put tShoppingList[Fruit]
>>
>> -------
>>
>> In the message box, it works well (I get "Apple" ;-))
>>
>> Exactly the same in the script of a button, I can’t compile ; get an
>> error : first line with hint : ]
>
> The declaration in the first line ends with a comma, so perhaps the
> engine is expecting another variable there.  If you remove the comma
> does it compile?
>
> --
>  Richard Gaskin
>  Fourth World
>  Revolution training and consulting: http://www.fourthworld.com
>  Webzine for Rev developers: http://www.revjournal.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list