Check Stream question

Hi All,

Is there a way to check if a Stream is open or not? Eg.

if open output stream s-error then
put stream s-error unformatted "......" skip.

Thanx in advance for any assistance offered,
Cya.
 

obio

New Member
kb ID 18414

I haven't tested this myself but try this:

/* closed.p */
DEFINE STREAM test.

OUTPUT STREAM test TO junk.out.
OUTPUT STREAM test CLOSE.

IF SEEK(test) = ? THEN
MESSAGE "Stream is closed" VIEW-AS ALERT-BOX.



waynesingh said:
Hi All,

Is there a way to check if a Stream is open or not? Eg.

if open output stream s-error then
put stream s-error unformatted "......" skip.

Thanx in advance for any assistance offered,
Cya.
 
Top