Re: [U2] Old Dog, New Tricks

2007-03-12 Thread brian
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

Re: [U2] Old Dog, New Tricks

2007-03-11 Thread Anthony W. Youngman
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 =

Re: [U2] Old Dog, New Tricks

2007-03-11 Thread MAJ Programming
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

[U2] Old Dog, New Tricks

2007-03-09 Thread Bjorn Behr
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

Re: [U2] Old Dog, New Tricks

2007-03-09 Thread Ray Wurlod
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

RE: [U2] old dog, new tricks

2007-03-09 Thread gerry-u2ug
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

Re: [U2] old dog, new tricks

2007-03-09 Thread MAJ Programming
, 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

Re: [U2] Old Dog, New Tricks

2007-03-09 Thread MAJ Programming
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

RE: [U2] Old Dog, New Tricks

2007-03-09 Thread Allen E. Elwood
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

RE: [U2] old dog, new tricks

2007-03-08 Thread Womack, Adrian
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

Re: [U2] old dog, new tricks

2007-03-08 Thread MAJ Programming
@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

Re: [U2] old dog, new tricks

2007-03-08 Thread Dave R
] 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

RE: [U2] old dog, new tricks

2007-03-08 Thread Stevenson, Charles
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,