Hans Stoop--------------Register your subtypes in the OScript Registry:https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=2454603Consultant Partner Programs Europehstoop@opentext.com+31 23 5652333http://www.opentext.com/
-----Original Message-----From: knowledge@opentext.com [mailto:knowledge@opentext.com]On Behalf Of eLink Discussion: Development DiscussionSent: woensdag 6 juni 2001 16:18To: eLink RecipientSubject: Re RecArray Field order Re RecArray Field order Posted by eLink on 06/06/2001 10:17 AM In reply to: RecArray Field order Posted by lang (Lang, Jeff) on 05/17/2001 08:16 PM Message from Sean M Alderman <Sean.M.Alderman@grc.nasa.gov> via eLinkJeff, About a month ago you responded to me on the KC Development discussion with the note below. One of the real questions I was trying to get at (but apparently didn't know how to ask) deals with using builtins like RecArray.AddRecord(<rec array>,<list of values>) Suppose I have the following OScript function...(bear in mind, I'm just trying to figure out a good safe way to do this, so this may look ugly) function RecArray mergeRecArray(RecArray a, RecArray b) RecArray results Record rec results = RecArray.Create(Assoc.Keys(Assoc.FromRecord(a[1]))) for rec in a Assoc recAssoc = Assoc.FromRecord(rec) List aValues = Assoc.Items(recAssoc) Integer result = REcArray.AddRecord(results, aValues) end for rec in b Assoc recAssoc = Assoc.FromRecord(rec) List bValues = Assoc.Items(recAssoc) Integer result = RecArray.AddRecord(results, bValues) end return results Is it ok if the RecArrays (a) and (b) have the same fields, but different field orders? It seems to be, but in my testing I really can't tell. Can you see a better way of merging two RecArrays than what I've got here? At 12:18 AM 05/18/2001 +0000, you (eLink Discussion: Development Discussion) wrote: >RecArray Field order >Posted by lang on 05/17/2001 08:16 PM > >To be honest. The only time I ever access a RecArray field by index is if there is only 1 column in the RecArray. Using the field names is always the safest way. > >[To reply to this thread, use your normal e-mail reply function.] > >============================================================ > >Topic: RecArray field order... >https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=2518519&objAction=view > >Discussion: Development Discussion >https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=view > >Livelink Server: >https://knowledge.opentext.com/knowledge/livelink.exe - Sean M. Alderman ITRACK Systems Analyst PACE/NCI - NASA Glenn Research Center (216) 433-2795