Thanks Rick! This won't keep the program from going to debugger if someone did a FV="" but at least I can weed out probably 90% of the goofs. And since this subroutine is designed to be used by programmers, it won't be a huge problem, but I was just trying to make it bullet proof.
Allen E. Elwood Senior Programmer Analyst Direct (818) 361-5251 Fax (818) 361-5251 Cell (818) 359-8162 Home (818) 361-7217 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rick Ramsey Sent: Wednesday, September 01, 2004 04:22 To: [EMAIL PROTECTED] Subject: RE: [U2] [PICK] File handle opened? 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/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
