Try:

put the keys of myArray into listOfKeys
   repeat with x = 1 to the number of lines in listOfKeys
     put item(4) of myArray[line x of listOfKeys] & Tab into line x of me
     put item(1) of myArray[line x of listOfKeys] & Tab after line x of me
     put item(3) of myArray[line x of listOfKeys] & Tab after line x of me
     put item(2) of myArray[line x of listOfKeys] & Tab after line x of me
   end repeat

or for something shorther and quicker:

put the keys of myArray into listOfKeys
put 1 into i
repeat for each line l in listOfKeys
   put replaceText(myArray[l],",",tab) into line i of me
   add 1 to i   
end repeat

> 
> I'm curious, why doesn't this seem to work?
> 
> <script on a field>
> 
> 
> 
> I am trying to use this to fill a "table-like" field with the contents of
> myArray. The logic is that it will take all the keys, and for 
> each key fill
> in a line of the table with the contained data. However, the 
> results are not
> what I expected. I end up with 1 entry per line, tabbed in (1x I think).
> 
> Anyone care to enlighten?
> 
> TIA
> -- 
> Troy
> RPSystems
> www.rpsystems.net
> 

Reply via email to