Metodo di lettura ADO


❮ Riferimento completo all'oggetto Stream

Il metodo Read viene utilizzato per leggere l'intero flusso o un numero specificato di byte da un oggetto Stream binario e restituisce i dati risultanti come una variante.

Nota: questo metodo viene utilizzato solo con oggetti Stream binari, per oggetti Stream di testo, utilizzare il metodo ReadText.

Sintassi

var=objStream.Read numbytes

Parameter Description
numbytes Optional. The number of bytes to read from the file, or a StreamReadEnum value. Default is adReadAll

If you have specified more than the number of bytes left in the Stream, only the bytes remaining are returned.


Valori StreamReadEnum

Constant Value Description
adReadAll -1 Default. Reads all bytes from the stream, from the current position to EOS.

Note: This is the only valid value with binary Stream objects


❮ Riferimento completo all'oggetto Stream