We have experienced (almost never) OPEN errors that go to the ELSE clause
such as...
open 'CM' to F.Cust else S = "CM" ; gosub 9950
Accordingly, new code here is written...
open 'CM' to F.Cust else null
I do not forsee much market demand in this arena...
--Bill
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jeff Fitzgerald
Sent: Wednesday, June 06, 2007 3:14 PM
To: [email protected]
Subject: [U2] [UV] Trap OPEN error for corrupted file
In a BASIC program that OPENs a file, if the file being OPENed is
damaged (e.g. a bad blink or a 32-bit file that has been truncated
because it tried to extend past 2 GB) the OPEN fails and the program
aborts. As far as I can tell, this type of error isn't trappable and
doesn't take the ON ERROR or ELSE clauses; the program simply dies an
ugly death.
Anyone have any thoughts about trapping this type of error and keeping
the program alive?
Thanks!
Jeff Fitzgerald
Fitzgerald & Long, Inc.
-------
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/