<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"><BR>
I think you really need to look into the multi-dimensional arrays here. By using uMap[x], you are speeding up one half (the x coordinate), but you are still counting lines when you say "line y of uMap[x]". The larger y gets, the slower this will be.<BR>
<BR>
If you want the full speed up from arrays, you need something like this:<BR>
set the icon of cd btn bMap[z] to uMap[x,y]<BR>
<BR>
Even though you say "line y of uMap[x]", this is still line counting. Just knowing the exact line number is not enough: Metacard still needs to read 1 line at a time in order to count off lines and find the one you want.<BR>
<BR>
For the sake of a quick test, you should be able to transform your existing array like this:<BR>
<BR>
repeat with x=1 to 330<BR>
&nbsp;&nbsp;  repeat with y=1 to (number of lines in uMap[x])<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  put line y of uMap[x] into uMap[x,y]<BR>
&nbsp;&nbsp;  end repeat<BR>
end repeat<BR>
<BR>
Run this before your original script, then use the uMap[x,y] syntax. Time the second part and you should see a speedup.<BR>
<BR>
HTH<BR>
<BR>
&lt;&lt;<BR>
<BLOCKQUOTE CITE STYLE="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px" TYPE="CITE"></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">repeat with x = gRow to (gRow + 8)<BR>
     repeat with y = gCol to (gCol + 10)<BR>
       set the icon of cd btn bMap[z] to (line y of uMap[x])<BR>
       add 1 to z<BR>
     end repeat<BR>
   end repeat</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"><BR>
</BLOCKQUOTE></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">&gt;&gt;<BR>
</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
------------------------------<BR>
Brian Yennie<BR>
Chief Technology Officer<BR>
QLD Learning, LLC<BR>
www.QLDLearning.com<BR>
<BR>
PH: (904)-997-0212<BR>
EMAIL: Yennie@aol.com<BR>
-------------------------------<BR>
</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"></FONT></HTML>