Component: "ADODB.stream"
The following methods are available:
Cancel method
Use the following method
Object.cancel
Description: Cancels a call to execute a pending asynchronous Execute or Open method.
Close method
Use the following method
Object.close
: Turns off the image
CopyTo method
Use the following method
Object.copyto (Deststream,[charnumber])
Description: Copies the data for the image, Deststream points to the image to be copied, charnumber as an optional parameter, refers to the number of bytes to copy, not all copies.
Flush method
Use the following method
Object.flush
Description
LoadFromFile method
Use the following method
Object.loadfromfile (FileName)
Description: Loads the file specified by filename into the pair image, and the parameter filename is the specified user name.
Open method
Use the following method
Object.open (Source,[mode],[options],[username],[password])
Description: Turn on the image,
Parameter description: Sourece to the image source, do not specify
mode specifies the open pattern, not specified, optional parameters are as follows:
adModeRead =1
adModeReadWrite =3
Admoderecursive =4194304
adModeShareDenyNone =16
adModeShareDenyRead =4
adModeShareDenyWrite =8
Admodeshareexclusive =12
adModeUnknown =0
adModeWrite =2
Options specifies the option to open, not specified, with the following optional parameters:
Adopenstreamasync =1
adOpenStreamFromRecord =4
Adopenstreamunspecified=-1
USERNAME Specifies the user name, not specified.
Password password for the specified user name
Read method
Here's how to use it:
Object.read (numbytes)
Description: Reads the binary content of the specified length.
Parameter Description: numbytes Specifies the degree of seek to read, and does not specify to read all.
ReadText method
Here's how to use it:
Object.readtext (NumChars)
Description: Reads text of a specified length
Parameter Description: numchars Specifies the degree of seek to read, and does not specify to read all.
SaveToFile method
Here's how to use it:
Object.savetofile (Filename,[options])
Description: Writes the contents of the image to the file specified by filename
Parameter description: File specified by filename
Options access option, not specified, optional parameters are as follows:
Adsavecreatenotexist =1
Adsavecreateoverwrite =2
SetEOS method
Here's how to use it:
Object.seteos ()
Description
SkipLine method
Here's how to use it:
Object.skipline ()
Description
Write method
Here's how to use it:
Object.write (Buffer)
Description: Loads the specified data into a pair image.
Parameter description: Buffer is the specified content to write.
WriteText method
Here's how to use it:
Object.write (Da
Ta,[options])
Description: Loads the specified text data into a pair image.
Parameter description: Data is the specified content to write.
Options write option, not specified, optional parameters are as follows:
Adwritechar =0
Adwriteline =1
The following properties are available:
Charset
EOS returns whether the data inside the image is empty.
LINESEPARATOR Specifies the newline format, optional parameters are
ADCR =13
adCRLF =-1
Adlf =10
mode specifies or returns to add.
POSITION specifies or returns the current pointer to the data within the image.
Size returns the amount of data within the image.
Whether the state returns to the image status is turned on.
Type specifies or returns the data type, optional parameters are:
adTypeBinary =1
adTypeText =2
ADODB.stream instruction Manual