Kevin, here's a simple loop to create array B from array A with the following rules: For each data node in A, create a node in B having a subscript which is the last subscript of the A node, and set the value of the B node equal to the first subscript of the A node.
SET N="A" FOR SET N=$Q(@N) Q:N="" SET B($QS(N,$QL(N)))=$QS(N,1) ----- Original Message ----- From: "Kevin Toppenberg" <[EMAIL PROTECTED]> To: <hardhats-members@lists.sourceforge.net> Sent: Tuesday, July 11, 2006 4:36 PM Subject: Re: [Hardhats-members] Traversing an array >I was afraid you were going to say that... :-) > Kevin > > > On 7/11/06, Greg Woodhouse <[EMAIL PROTECTED]> wrote: >> Try using $QS and $QL. >> >> --- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: >> >> > I need to work on an array something like this. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members