ADOCopyToメソッド_
❮完全なストリームオブジェクトリファレンス
CopyToメソッドは、指定された数の文字またはバイトを開いているStreamオブジェクトから別の開いているStreamオブジェクトにコピーするために使用されます。
2つのStreamオブジェクトのタイプは同じである必要があります。ただし、テキストStreamオブジェクトはバイナリStreamオブジェクトにコピーできますが、その逆はできません。また、宛先StreamオブジェクトのCharSetプロパティは、ソースStreamオブジェクトとは異なる場合があります。
構文
objStream.CopyTo dest,numchars
Parameter | Description |
---|---|
dest | Required. Where to copy the Stream (contains a reference to an open Stream object) |
numchars | Optional. An integer that specifies the number of characters
or bytes to be copied from the current position in the source Stream to
the destination Stream. Default is -1 (will copy all data from the current position to
EOS)
Note: If the specified number is greater than the available number of bytes/characters until EOS, then only bytes/characters from the current position to EOS are copied |
❮完全なストリームオブジェクトリファレンス