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
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
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
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
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
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
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
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: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,
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
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
11 matches
Mail list logo