Stream - is open?

D.Cook

Member
Hitting up the ABL reference i was surprised to find that the Stream object does not have an IS-OPEN attribute. How am I supposed to know if it is available (in this case) for writing? Of course I could keep a separate variable for the open status and manually maintain it, but that's not a clean solution and is open to error.

I also thought about adding the NO-ERROR option to my PUT statement, but that's also not an option :(

Any suggestions?
 
Good point, however in this case if the stream is closed, it's closed for a reason. Oh well it probably makes sense now that the reason gets a variable named after it.
 
Back
Top