File, variable, array, split
ttasovac at Princeton.EDU
Mon Sep 23 01:35:01 CDT 2002
I have a text file with a tab delimited list of words and translations, i.e.
I use the following code to put this file into a variable and then turn it
into an array:
put url "file:translations" into tTranslations
split tTranslations with cr and tab
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...
select the clickChunk
put the clickText into tClickedWord
put tTranslations[tClickedWord] into fld "Translation Display"
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
Any ideas on how I should troubleshoot this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the use-livecode