Instructions for use of AdoDB.Stream

xiaoxiao2021-03-06  56

Components: "AdoDB.Stream" has the following methods: CANCEL method Usage The following Object.cancel description: Cancel the call to the pending asynchronous Execute or Open method. Close method How to use Object.close: Turn off the log case COPYTO method Usage Object.copyTo (DestStream, [Charnumber]) Description: Copy the object's data, DestStReam points to the object to copy, charnumber is an optional parameter, Inforition, the number of bytes must be copied, not all copied. Flush method How to use Object.flush Description: LoadFromFile method Usage Object.LoadFromFile (filename) Description: Load FileName The file is loaded into the object, the parameter filename is the specified username. Open method uses Object.Open (Source, [Mode], [Options], [UserName], [Password]) Description: Open Open Out, Parameter Description: SouRe Pair source, may not specify Mode specified open mode, 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 option specified open, may designate, 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 Usage: Object.read (NumBytes) Description: Read the 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

转载请注明原文地址:https://www.9cbs.com/read-114779.html

New Post(0)