Try OpenEdge Now
skip to main content
ABL Reference
Handle Reference : Stream object handle
 

Stream object handle

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.

Syntax

STREAM stream-name:attribute | stream-handle:attribute
stream-name
The valid name of a stream. If the stream name is invalid, ABL raises a compiler error.
attribute
An attribute of the Stream object.

Attributes

Example

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.

See also

DEFINE STREAM statement