ADO CopyTo- metode
❮ Voltooi stroomobjekverwysing
Die CopyTo-metode word gebruik om 'n gespesifiseerde aantal karakters of grepe van 'n oop Stroom-objek na 'n ander oop Stroom-objek te kopieer.
Die tipe van die twee Stroom-voorwerpe moet dieselfde wees. Teks Stroom-objekte kan egter na binêre Stroom-objekte gekopieer word, maar nie omgekeerd nie, en die CharSet-eienskap van die bestemming Stroom-objek kan anders wees as die bron Stroom-objek.
Sintaksis
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 |
❮ Voltooi stroomobjekverwysing