Hi all,
I resolved the following issue
> <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?
With the following code -
put keys(dvArray) into listOfKeys
repeat with x = 1 to the number of lines in listOfKeys
put dvArray[line x of listOfKeys] into itemList
put item(4) of itemlist & Tab into line x of me
put item(1) of itemlist & Tab after line x of me
put item(3) of itemlist & Tab after line x of me
put item(2) of itemlist & Tab after line x of me
end repeat
This seems to work fine. I figured that I'm likely not the only one who will
be working through this stuff, and perhaps the list archive will help
others.
--
Troy
RPSystems
www.rpsystems.net