IF ASSIGNED(file.var) then
* Check for locks...
END

Works. You can also do NOT(ASSIGNED(file.var)) as well. This works on
both "regular" and "file" variables.

Hth
Colin Alfke
Calgary, Alberta

-----Original Message-----
From: Allen E. Elwood (CA) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 31, 2004 2: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/

Reply via email to