Component: "AdoDb.Stream"
Have the following methods:
CANCEL method
How to use
Object.cancel
Description: Cancel the call to the pending asynchronous EXECUTE or OPEN method.
Close method
How to use
Object.close
: Close the right image
COPYTO method
How to use
Object.copyto (Deststream, [Charnumber])
Description: Copy the data of the object, DestStream points to the object to be copied, charnumber is an optional parameter, and the number of bytes must be copied, and is not selected as all replication.
FLUSH method
How to use
Object.flush
Description:
LoadFromfile method
How to use
Object.loadFromfile (filename)
Description: Load FileName The file specified in the object, the parameter filename is the specified username.
Open method
How to use
Object.open (Source, [Mode], [OPTIONS], [UserName], [Password])
Description: Open the object,
Parameter Description: Sourece Alignment, may not be specified
Mode specifies that the open mode is open, can be specified, the optional parameters are as follows:
AdmodeRead = 1
AdmodeReadwrite = 3
AdmodeRecursive = 4194304
Admodesharedenynone = 16
AdmodesharedenyRead = 4
Admodesharednywrite = 8
AdmodeshareExClusive = 12
AdmodeunkNown = 0
AdmodeWrite = 2
Options Specifies the option to open, may not be specified, the optional parameters are as follows:
AdoPenStreamasync = 1
AdoPenStreamFromRecord = 4
AdoPenStreamunSpecified = -1
UserName Specifies the username, not specified.
Password Specifies the password of the username
Read method
The method is as follows:
Object.read (NumBytes)
Description: Read binary content of the specified length.
Parameter Description: Numbytes Specifies the Land to read, not specified, read all.
The readtext method uses the following: Object.readText (Numchars) Description: Read the text parameters of the specified length Description: Numchars specified by the spot to read, not specified, read all.
The SaveTofile method is used as follows: Object.savetofile (filename, [options]) Description: Write the contents of the contents of the file to the parameter description: filename specified by file Options option, may not be specified, optional parameters are as follows : Adsavecreatenotexist = 1 adsavecreateoverwrite = 2
The SETEOS method is as follows: Object.seteos () Description: skipline method Usage: Object.skipline () Description: Write method Usage The method is as follows: Object.write (BUFFER) Description: Load the specified data into the object. Parameter Description: Buffer is the content you want to write. The WriteText method is used as follows: Object.write (DATA, [OPTIONS]) Description: Load the specified text data into the object. Parameter Description: DATA is the content you want to write. Options Write options, optionally, optional parameters are as follows: AdWriteChar = 0 AdWriteline = 1 Have the following attribute: CHARSET EOS returns whether the data is empty within the object.
LINESEPARATOR specifies a changing format, optional parameter has an ADCR = 13 ADCRLF = -1 ADLF = 10 MODE specified or returns mode. Position specifies or returns the current pointer to the image within the image. SIZE returns the size of the data within the object. State returns to whether the object state is opened. Type specified or returned data type, optional parameter is: adtypebinary = 1 adtypetext = 2