Cancel method
How to use it
Object.Cancel
Description: Cancels execution of a pending call to the asynchronous Execute or Open method.
Close method
How to use it
Object.Close
: Close the object
CopyTo method
How to use it
Object.CopyTo(destStream,[CharNumber])
Description: Copy the object's data. destStream points to the object to be copied. CharNumber is an optional parameter, which refers to the number of bytes to be copied. If not selected, all copies will be copied.
Flush method
How to use it
Object.Flush
illustrate:
LoadFromFile method
How to use it
Object.LoadFromFile(FileName)
Description: Load the file specified by FileName into the object, and the parameter FileName is the specified user name.
Open method
How to use it
Object.Open(Source,[Mode],[Options],[UserName],[Password])
Description: Open the object,
Parameter description: Source object source, can not be specified
Mode specifies the opening mode, which can be left unspecified. The 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 options to open, which can be left unspecified. The optional parameters are as follows:
adOpenStreamAsync =1
adOpenStreamFromRecord =4
adOpenStreamUnspecified=-1
UserName specifies the user name, optional.
Password Password for the specified username
Read method
How to use it:
Object.Read(Numbytes)
Description: Read the binary content of the specified length.
Parameter description: Numbytes specifies the number to be read, if not specified, all will be read.
ReadText method
How to use it:
Object.ReadText(NumChars)
Description: Read text of specified length
Parameter description: NumChars specifies the degree to be read, if not specified, all will be read.
SaveToFile method
How to use it:
Object.SaveToFile(FileName,[Options])
Description: Write the contents of the object to the file specified by FileName
Parameter description: File specified by FileName
Options access options, which can be left unspecified. The optional parameters are as follows:
adSaveCreateNotExist =1
adSaveCreateOverWrite =2
SetEOS method
How to use it:
Object.setEOS()
illustrate:
SkipLine method
How to use it:
Object.SkipLine()
illustrate:
Write method
How to use it:
Object.Write(Buffer)
Description: Load the specified data into the object.
Parameter description: Buffer is the specified content to be written.
WriteText method
How to use it:
Object.Write(Data,[Options])
Description: Load the specified text data into the object.
Parameter description: Data is the specified content to be written.
Options The options to write, which can be left unspecified. The optional parameters are as follows:
adWriteChar =0
adWriteLine =1
Has the following properties:
Charset
EOS returns whether the data in the object is empty.
LineSeparator specifies the newline format, optional parameters are
adCR =13
adCRLF =-1
adLF =10
Mode specifies or adds back mode.
Position specifies or returns the current pointer to the data within the object.
Size returns the size of the data within the object.
State Returns whether the object state is turned on.
Type The data type specified or returned. The optional parameters are:
adTypeBinary =1
adTypeText =2