Page

C.1.13- The Stream Object

Created by Brendan Doss.
Last Updated by Brendan Doss.  

PublicCategorized as Appendix C.

Not yet tagged
<< C.1.12- The Recordset ObjectAppendixCC.1.14- Method Calls - Syntax >>

The Stream Object

Methods

Name

Returns

Description

Cancel

 

Cancels execution of a pending asynchronous open operation.

Close

 

Closes an open stream.

CopyTo

 

Copies characters or bytes from one stream to another.

Flush

 

Flushes the contents of the stream to the underlying object.

LoadFromFile

 

Loads a stream from a file.

Open

 

Opens a stream object from a URL or an existing record, or creates a blank stream.

Read

Variant

Reads a number of bytes from the stream.

ReadText

String

Reads a number of characters from a text stream.

SaveToFile

 

Saves an open stream to a file.

SetEOS

 

Sets the current position to be the end of the stream.

SkipLine

 

Skips a line when reading from a text stream.

Write

 

Writes binary data to a stream.

WriteText

 

Writes text data to a stream.

Properties

Name

Returns

Description

Charset

String

Identifies the character set used by the stream.

EOS

Boolean

Is set to True if the current position is the end of the stream. Read-only

 

Name

Returns

Description

LineSeparator

LineSeparator
Enum

Indicates the character used to separate lines in a text stream. The default is vbCrLf.

Mode

ConnectMode
Enum

Indicates the available permissions for modifying data in a Connection.

Position

Long

Specifies the current position in the stream.

Size

Long

Indicates the length, in bytes, of the stream. Read-only

State

ObjectState
Enum

Indicates whether the stream is open or closed, and if open, the state of asynchronous actions. Read-only

Type

StreamType
Enum

Indicates whether the stream contains text or binary data.

<< C.1.12- The Recordset ObjectAppendixCC.1.14- Method Calls - Syntax >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |