Array index

 
Compiler does not like the following:
string sName=Array2[Array1[i][A1_INDEX]][A2_NAME];
and is substituted in program with:
int iPos=Array1[i][A1_INDEX];
string sName=Array2[iPos][A2_NAME];
Could the documentation please reflect this.
 
What is type of Array1?
array index should be of integer type - there is documented
 
Array1 is of type double. Thank you. Take care.