I use this method to determine if TEXT variable vTextDate has a valid date:

SET V vTextDate DATE
IF vTextDate IS NULL THEN
  -- invalid date
ELSE
  -- date is valid
ENDIF

Regards,

Stephen Markson
ForenSys The Forensic Systems Group
www.ForenSys.ca
416 482 2140

________________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: April 13, 2005 11:31 PM
To: RBG7-L Mailing List
Subject: [RBG7-L] - Determining if a string is a valid date (or catching an
error code)

I'm parsing some imported data and want to�determine if a string is a valid
date prior to putting it into a variable with a type of 'date'.�If that
function is not available, is there a way to capture and error code to a
variable (without stopping program execution)�so if I try to put it in the
variable and it fails, I can take the appropriate action? I suspect that one
of you smart people has the answer....
=

Reply via email to