<HTML>
<HEAD>
<TITLE>File, variable, array, split </TITLE>
</HEAD>
<BODY>
<FONT FACE="Lucida Grande">Hi.  <BR>
<BR>
I have a text file with a tab delimited list of words and translations, i.e.<BR>
<BR>
word1   translation1<BR>
word2   translation2<BR>
<BR>
I use the following code to put this file into a variable and then turn it into an array:<BR>
<BR>
on openStack<BR>
  global tTranslations<BR>
  put url "file:translations" into tTranslations<BR>
  split tTranslations with cr and tab<BR>
end openStack<BR>
<BR>
<BR>
Then, I have a field with some text in it.  I want the user to click on a word in the text and have the translation displayed in another field, called “Translation Display”  So...<BR>
<BR>
on mouseUp<BR>
  global tTranslation<BR>
  select the clickChunk<BR>
  put the clickText into tClickedWord<BR>
  put tTranslations[tClickedWord] into fld "Translation Display"<BR>
end mouseUp<BR>
<BR>
And that should be it.  But it’s not.  When I click on the word, it gets selected, but no translation appears in the “Translation Display”.  I get no error messages. <BR>
<BR>
Any ideas on how I should troubleshoot this?<BR>
<BR>
 Toma<BR>
</FONT>
</BODY>
</HTML>