Is there a more efficient way to get a list of a member of a record?
In the sample below, I use a method to get two values, which are part of a custom data type. I want to get only a list of the first item to use for something else. It seems inefficient to have to run back through the list to append each item to a new list. Besides changing the original method, is there more efficient way?
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[-] type TOP_CUSTOMERS is record
[ ] INTEGER iCustomerID
[ ] INTEGER iCount
[-] testcase Question ()
[ ] LIST OF TOP_CUSTOMERS lrTopCustomers
[ ] TOP_CUSTOMERS t
[ ] INTEGER iCountToGet
[ ] LIST OF INTEGER liCustomerIDs
[ ] iCountToGet = 500
[ ] lrTopCustomers = x.GetTopCustomers (iCountToGet)
[-] for each t in lrTopCustomers
[ ] ListAppend (liCustomerIDs, t.iCustomerID)</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">