try this
IF REC<1> � '' THEN REC<1> = TRIM(REC<1>, @VM, 'R') GO 300 END
Cheers, Marco
From: "Jonathan Leckie" <[EMAIL PROTECTED]> Reply-To: U2 Users Discussion List <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Optimisation ? Date: Thu, 25 Mar 2004 12:29:02 -0000
I have the following piece of code :
IF REC<1> � '' THEN MAX=DCOUNT(REC<1>,VM) FOR LOP=1 TO MAX IF REC<1,LOP> = '' THEN REC=DELETE(REC,1,LOP,0) IF LOP = MAX THEN GO 300 LOP=LOP-1 END NEXT LOP END
I wonder could this simply be replaced with :
IF REC<1> � '' THEN REC<1>=TRIM(REC<1>,@VM) GO 300 END
Can anyone see any problems with using TRIM to remove trailing, repeated and
initial value markers and therefore achieving the same effect without
looping through each multi-value? This is on Unidata 3.3.2 incidentally.
--
************************************************************************ * This message has been scanned for viruses and dangerous content by * Blairs of Scotland MailScanner, and is believed to be clean. * * This email and any files transmitted with it are confidential and * intended solely for the use of the individual or entity to which they * are addressed. * * If you have received this email in error please notify us at Blairs * of Scotland via email at [EMAIL PROTECTED] ************************************************************************
-- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
_________________________________________________________________ MSN Amor: busca tu � naranja http://latam.msn.com/amor/
-- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
