ADO CopyTo- methode
❮Volledige Stream Object Referentie
De methode CopyTo wordt gebruikt om een opgegeven aantal tekens of bytes van een open Stream-object naar een ander open Stream-object te kopiëren.
Het type van de twee Stream-objecten moet hetzelfde zijn. Tekst Stream-objecten kunnen echter worden gekopieerd naar binaire Stream-objecten, maar niet omgekeerd, en de eigenschap CharSet van het doel Stream-object kan anders zijn dan het bron Stream-object.
Syntaxis
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 |
❮Volledige Stream Object Referentie