Name
Stream.Type Property — (Versions 2.5, 2.6)
Synopsis
streamtype = stream.TypeThe Type property indicates how a Stream object’s data should be analyzed.
Datatype
StreamTypeEnum Enumeration
Description
The default value for a Stream object is
adTypeText, but if binary data is written to a new
Stream object, the Type property will automatically be changed to
adTypeBinary.
The Type property is read- and write-enabled while the stream pointer is at zero (Position property equals 0) and read-only at any other position.
If the Type property is set to adTypeText, you
should use the ReadText and WriteText methods for data manipulation
and retrieval. If the Type property is set to
adTypeBinary, you should use the Read and Write
methods for data manipulation and retrieval.
See Also
Stream.Read Method, Stream.ReadText Method, Stream.Write Method, Stream.WriteText method, StreamTypeEnum Enumeration
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access