I forgot to mention - the FILEVAR will be considered to be ASSIGNED=TRUE even if you've simply done a FILEVAR="" somewhere in the program. The key to this is never use the file handle variable name except for the ASSIGNED or the various file-handling verbs.
Rick Ramsey Healthpac Cumputer Systems Savannah, GA -----Original Message----- From: Rick Ramsey Sent: Wednesday, September 01, 2004 7:18 AM To: '[EMAIL PROTECTED]' Subject: RE: [U2] [PICK] File handle opened? I believe this will work for you in D3: IF ASSIGNED(FILEVAR) . . . where FILEVAR is the file handle variable used in the OPEN statement Rick Ramsey Healthpac Cumputer Systems Savannah, GA -----Original Message----- From: Allen E. Elwood (CA) [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 5:39 PM To: [EMAIL PROTECTED] Subject: [U2] [PICK] File handle opened? I've done this in U2 before, but in a Raining Data Pick Env, does anyone know how to interrogate a file handle to see if it has been properly opened? I'm writing a LOCK.RECORD subroutine with all kinds of nifty options and it would be nice to be able to not blow out to debugger if a handle is not opened. Even the ON ERROR clause will not stop it from blowing out if the file is unopened and you try to read, or if the file is opened and you do any BUT a file operation. Thanks! Allen ------- 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/
