AdoStream:CopyTo()

<< Click to Display Table of Contents >>

Navigation:  Ado Classes > AdoStream Class >

AdoStream:CopyTo()

Previous pageReturn to chapter overviewNext page

Purpose

Copies the specified number of characters or bytes (depending on Type) in the Stream to another Stream object

 

Prototype

METHOD CopyTo ( oDest AS AdoStream, liNumChars AS USUAL )  AS VOID 

 

Argument(s)

oDest        AdoStream Object An object variable value that contains a reference to an open Stream object

liNumChars        LONG (Optional) An Integer value that specifies the number of bytes or characters to be copied

 

 

Description

This method copies the specified number of characters or bytes, starting from the current position specified by the Position property. If the specified number is more than the available number of bytes until EOS, then only characters or bytes from the current position to EOS are copied. If the value of NumChars is –1, or omitted, all characters or bytes starting from the current position are copied.

 

See Also

AdoStream