I'm curious, why doesn't this seem to work?

<script on a field>

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

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