Or just use $OPTIONS EXTRA.DELIM.
This ensures that an empty element is still added with the correct delimiter.
Brian
In message [EMAIL PROTECTED], Allen E.
Elwood [EMAIL PROTECTED] writes
You can always test,
IF TEMP = '' THEN TEMP = NULL
and likewise on the end that processes after the
In message [EMAIL PROTECTED], Allen E.
Elwood [EMAIL PROTECTED] writes
You can always test,
IF TEMP = '' THEN TEMP = NULL
and likewise on the end that processes after the ARRAY is completed.
1~2~NULL~4~5~NULL~...
on the receiving end would be
IF ARRAYWHATEVER = NULL THEN ARRAYWHATEVER =
Interesting concept, putting the delimiter in the 1 position then deleting
it. Makes the IF within the LOOP not needed.
- Original Message -
From: Anthony W. Youngman [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Sunday, March 11, 2007 5:12 PM
Subject: Re: [U2] Old Dog, New
The only problem with using -1 is that it the value is null, it does not
append it. This could cause problems, esp. when doing this with dependant
rows.
Program Example:
001 ARRAY =
002 FOR J = 1 TO 10
003IF (NOT(MOD(J,5))) THEN
004 TEMP =
005END ELSE
006 TEMP = J
007END
In UniVerse, $OPTIONS EXTRA.DELIM
- Original Message -
From: Bjorn Behr [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Subject: [U2] Old Dog, New Tricks
Date: Fri, 9 Mar 2007 10:47:32 +0200
The only problem with using -1 is that it the value is null, it does not
append
raise() lower() are your friends
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Ballinger
Sent: March 8, 2007 9:10 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] old dog, new tricks
snip /
Also, I think UV is optimized for AMs vs VMs, so
, 2007 1:48 AM
Subject: RE: [U2] old dog, new tricks
To add to Adrian's explanation, when a string is in memory, the first
few bytes at that string's address is not actual data, but metadata
about the string, including its length, so UV immediately knows where
the string ends ( where the next
for using a delimiter when
delimiters are implied.
My 1 cent
Mark Johnson
- Original Message -
From: Bjorn Behr [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Friday, March 09, 2007 3:47 AM
Subject: [U2] Old Dog, New Tricks
The only problem with using -1 is that it the value
PROTECTED] Behalf Of Bjorn Behr
Sent: Friday, March 09, 2007 00:48
To: u2-users@listserver.u2ug.org
Subject: [U2] Old Dog, New Tricks
The only problem with using -1 is that it the value is null, it does not
append it. This could cause problems, esp. when doing this with dependant
rows.
Program Example
slower
as each successive string becomes larger and larger.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Ballinger
Sent: Friday, 9 March 2007 11:10 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] old dog, new tricks
Perhaps this is not a revelation
@listserver.u2ug.org
Sent: Thursday, March 08, 2007 10:40 PM
Subject: RE: [U2] old dog, new tricks
This is more of an old trick.
The reason that -1 is so much faster is because using -1 just
appends to an already existing string in memory. Where using n will
cause an entirely new string to be created
]
To: u2-users@listserver.u2ug.org
Sent: Thursday, March 08, 2007 10:40 PM
Subject: RE: [U2] old dog, new tricks
This is more of an old trick.
The reason that -1 is so much faster is because using -1 just
appends to an already existing string in memory. Where using n will
cause an entirely new
To add to Adrian's explanation, when a string is in memory, the first
few bytes at that string's address is not actual data, but metadata
about the string, including its length, so UV immediately knows where
the string ends ( where the next string begins).
Therefore -1 can make an immediate jump,
13 matches
Mail list logo