Thank you Klaus, Mark and Richard for your quick answers.

Yes, Quoting the keys solved my problem ; (the message box seems a special case : there, quotes are not necessary ! bizarre ;-))

Copying the example from Tom Healy (keys not quoted) I had tried with Rev 3.0 and 3.5 as well.

The comma after the declaration does not matter : I always do that without any problem

Thanks again ; now I may continue learning about arrays and Data Grid (a bit complex isn'it ?:-))

Richard, I love your claim: " The more custom controls look, feel, and *script* like native
   controls, the more they will be adopted."

Best regards from Grenoble
André

Le 10 mars 09 à 16:01, Richard Gaskin a écrit :

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 : ]


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to