You got it. Yes I did come across this yesterday. One of our programs used one style and another used the other style. One worked the other didn't. It had me puzzled for a while.
----- Original Message ----- From: "Mitchell, Stewart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 01, 2004 5:41 PM Subject: RE: [U2] UV quiz Jerry, I would suggest if the date was the 1st of the month the first locate statement would not find the value as this performs a string comparison as it assumes AL ascending left justified. ie 1 and 01 are not equivalent stings However, the second locate statement would find the value as AR ascending right justified will perform a numerical comparison and in this case 1 and 01 are equivalent values. Regards, Stewart -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jerry Banker Sent: Thursday, 2 December 2004 9:17 To: [EMAIL PROTECTED] Subject: [U2] UV quiz Try this one A = '1' DAY = OCONV(DATE(),'DD') CRT A:' ':DAY LOCATE DAY IN A<1> SETTING MV THEN CRT 'FOUND' END ELSE CRT 'DID NOT FIND' END LOCATE(DAY,A,1;MV;'AR') THEN CRT 'FOUND' END ELSE CRT 'NOT FOUND' END END Jerry Banker ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/ ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been scanned for the presence of computer viruses. ********************************************************************** ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
