Error 9. Array subscript has to be a number

You can use only numbers as array subscripts, strings and arrays are not accepted:

table[ 1 ] = 10; // correct
table[
"text" ] = 10; // incorrect
table[
Close ] = 10; // incorrect