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.
ReadText method
The method is as follows:
Object.readtext (Numchars)
Description: Read the text of the specified length
Parameter Description: Numchars specified by the Land to read, not specified, read all.
Savetofile method
The method is as follows:
Object.savetofile (FileName, [Options])
Description: Write the contents of the object to the file specified in the filename
Parameter Description: FileName Specifies the file
Options Access options, may not be specified, optional parameters are as follows:
Adsavecreatenotexist = 1
AdsavecreateOverWrite = 2
Seteos method
The method is as follows:
Object.seteos ()
Description:
Skipline method
The method is as follows:
Object.skipline ()
Description:
Write method
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.
WriteText method
The method is 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 written in Options, may not be specified, optional parameters are as follows:
AdWriteChar = 0
AdWriteline = 1
Have the following properties:
Charset
EOS returns to whether the data is empty within the object.
LINESEPARATOR specifies a changing format, optional parameters have
ADCR = 13
ADCRLF = -1
ADLF = 10
Mode specifies 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 parameters are:
ADTYPEBINARY = 1
ADTYPETEXT = 2