Re: [U2] Using all attributes in a record

2007-05-02 Thread Mats Carlid
Jef Lee skrev: Some time ago, someone posted code showing a very fast way to process all the attributes in a record. I think it involved deleting the first attribute after processing it, but I'm not sure. I searched the digests I have kept and probably haven't got that one or don't know what

RE: [U2] Using all attributes in a record

2007-05-02 Thread Jef Lee
Mats, I think (foggy recollection) that it was the difference between DUMMY='' CHK=1 ARR='' FOR I = 1 TO 1 ARRI=CHAR(MOD((I-1),26)+65) NEXT I * Check time here FOR I = 1 TO 1 DUMMY=ARRI NEXT I * Check time here

Re: [U2] Using all attributes in a record

2007-05-02 Thread Mats Carlid
Jef Lee skrev: Mats, I think (foggy recollection) that it was the difference between DUMMY='' CHK=1 ARR='' FOR I = 1 TO 1 ARRI=CHAR(MOD((I-1),26)+65) NEXT I * Check time here FOR I = 1 TO 1 DUMMY=ARRI NEXT I * Check

Re: [U2] Using all attributes in a record

2007-05-01 Thread Allen Egerton
Jef Lee wrote: Some time ago, someone posted code showing a very fast way to process all the attributes in a record. I think it involved deleting the first attribute after processing it, but I'm not sure. I searched the digests I have kept and probably haven't got that one or don't know what

RE: [U2] Using all attributes in a record

2007-05-01 Thread Dan Fitzgerald
yes; look up the REMOVING keyword in the manual. From: Jef Lee [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: [U2] Using all attributes in a record Date: Tue, 1 May 2007 17:13:46 +0800 Some time ago, someone posted code showing a very fast

RE: [U2] Using all attributes in a record

2007-05-01 Thread Dan Fitzgerald
yes; look up the REMOVIN From: Jef Lee [EMAIL PROTECTED] Reply-To: u2-users@listserver.u2ug.org To: u2-users@listserver.u2ug.org Subject: [U2] Using all attributes in a record Date: Tue, 1 May 2007 17:13:46 +0800 Some time ago, someone posted code showing a very fast way to process all the

RE: [U2] Using all attributes in a record

2007-05-01 Thread Dave Davis
Look at the REMOVE command. It doesn't actually delete anything, just advances an internal pointer to the current attribute, so that it doesn't scan from the beginning every time. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jef Lee Sent: Tuesday, May

Re: [U2] Using all attributes in a record

2007-05-01 Thread MAJ Programming
If you're meaning an attributed record that is an index, then REMOVE processes fastest. My 1 cent. Mark Johnson - Original Message - From: john reid [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Sent: Tuesday, May 01, 2007 7:46 AM Subject: Re: [U2] Using all attributes in a record

Re: [U2] Using all attributes in a record

2007-05-01 Thread john reid
re:REMOVE ... being careful of course to remember that values and subvalues get fetched as a part of the REMOVE. That is to say, you may not always get a 'whole' attribute. john On 5/1/07, Dave Davis [EMAIL PROTECTED] wrote: Look at the REMOVE command. It doesn't actually delete anything,

Re: [U2] Using all attributes in a record

2007-05-01 Thread brian
Jeffrey You don't say if you're on UniVerse or UniData. UniVerse dynamic arrays have an intelligent internal pointer mechanism, so you don't need to use REMOVE if you work sequentially through all attributes e.g. using a regular For..Next loop. UniData doesn't have this, so you need to use

RE: [U2] Using all attributes in a record

2007-05-01 Thread Boydell, Stuart
As well as using the REMOVE statement (which I find awkward to use on associated MVs) there are also the dynamic vector statements [talking UV here - don't know bout UD]. These are normally used in I-types but may also be used in BASIC, either as functions or called subroutines. They work on any