Recommended: Comprehensive parsing of Server objects Server objects provide methods and properties accessed on the server. Most methods and properties are provided as functionality of a utility. Syntax: Server.property|method property (property) There is only one property in the Server object
Component: Adodb.StreamThere are the following methods:
Cancel Method
How to use it is as follows
Object.Cancel
Description: Cancels the execution of the pending asynchronous Execute or Open method call.
Close method
How to use it is as follows
Object.Close
: Close the object
CopyTo method
How to use it is as follows
Object.CopyTo(destStream,[CharNumber])
Description: Copy the data of the object, destStream points to the object to be copied, CharNumber is an optional parameter, which refers to the number of bytes to be copied, and does not select all copies.
Flush method
How to use it is as follows
Object.Flush
illustrate:
LoadFromFile method
How to use it is as follows
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 is as follows
Object.Open(Source,[Mode],[Options],[UserName],[Password])
Description: Open the object,
Parameter description: Sourece object source, can not be specified
Mode specifies the opening mode, and can not be specified. 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 option to open, and can not be specified. The optional parameters are as follows:
adOpenStreamAsync =1
adOpenStreamFromRecord = 4
adOpenStreamUnspecified=-1
UserName specifies the user name, but may not be specified.
Password Specify the password for the user name
Read Method
How to use it is as follows:
Object.Read(Numbytes)
Description: Read binary content of the specified length.
Parameter description: The search degree to be read by Numbytes is specified, and if not specified, all of them are read.
ReadText method
How to use it is as follows:
Object.ReadText(NumChars)
Description: Read text of a specified length
Parameter description: NumChars specifies the search degree to be read, if not specified, all reads.
SaveToFile method
How to use it is as follows:
Object.SaveToFile(FileName,[Options])
Description: Write the content of the object to the file specified by FileName
Parameter description: FileName specified
Options access options can be not specified, and the optional parameters are as follows:
adSaveCreateNotExist =1
adSaveCreateOverWrite =2
SetEOS Method
How to use it is as follows:
Object.setEOS()
illustrate:
SkipLine Method
How to use it is as follows:
Object.SkipLine()
illustrate:
Write Method
How to use it is as follows:
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 is as follows:
Object.Write(Data,[Options])
Description: Load the specified text data into the object.
Parameter description: Data is the specified content to be written.
Options write options are not specified, and the optional parameters are as follows:
adWriteChar =0
adWriteLine =1
There are the following properties:
Charset
EOS returns whether the data in the object is empty.
LineSeparator specifies the line break format, optional parameters are
adCR =13
adCRLF =-1
adLF =10
Mode Specifies or rebate mode.
Position Specifies or returns the current pointer to the data within the object.
Size Returns the size of the data in the object.
State Whether the return object state is on.
Type specifies or returns the data type, optional parameters are:
adTypeBinary =1
adTypeText =2
Share: Design a message sheet with ASP First, before we make the message sheet, we first create an input screen interface effect, that is, generate the html page of the input screen of the message section, and then add the ASP script to these html source codes. The html code I got here is as follows. *File name: book.htm