The AVM creates a stream object when an application first tries to get the handle to a given stream. The AVM automatically deletes the stream object when the procedure or class that defines the stream terminates.
STREAM stream-name:attribute | stream-handle:attribute
This example shows how the HANDLE attribute of the stream object is assigned to hStream:
DEFINE VARIABLE hStream AS HANDLE NO-UNDO. DEFINE STREAM myStream. hStream = STREAM mySTream:HANDLE.
DEFINE STREAM statement