= Objobject.methodname (Strmyvar) can be used instead of Strmyvar =functionname (Strmyvar). The writing is different, but the function is the same. An example of a property is the Expireabsolute,response.expiresabsolute = CDate in an object Response ("1 September 1999"). An example of the method is the Write method in Object Response, Response.Write "Hello world!".
A new feature of VBScript is that it can create new objects without requiring a compi
Cookie|vbscript| Program | function functions Cookievalue (Pcook)
Lhowlong=len (Pcook)
Lwhereis=instr (Document.cookie,pcook)
If Lwhereis=0 Then
Cookievalue=false
Else
Lstartpos=len (Document.cookie)-lwhereis-lhowlong
Lstartstring=right (Document.cookie,lstartpos)
Todo
Lchar=left (lstartstring,1)
If lchar= ";" Then
Cookievalue=lendstring
Exit Do
Else
Lendstring=lendstring Lchar
If Len (lstartstring) =1 Then
Cookievalue=lendstring
Exit Do
Else
Lstarts
vbscript| function
1. Function Array ()
Function: Create an array variable
Format: Array (list)
Parameters: List of each numeric column in an array variable, separated by a comma
Example:
Result: I was given an array
2. Function CInt ()
Function: Converts an expression/other type of variable to an integer type (int)
Format: Cint (expression)
Parameter: expression is any valid expression/other type of variable
Example:
F = "234"
Response.Write
vbscript| Function | conversion CBool function
Describe
Returns an expression that has been converted to a Variant (variable) of a Boolean (Boolean type/subtype) subtype.
Grammar
CBool (expression)
expression is any valid expression.
Description
Returns False if expression is zero, otherwise returns TRUE. If expression cannot be interpreted as a numeric value, a run-time error occurs. The following example uses the CBool function to convert a expres
Foreigners write a class, such a small application, unless there is a special need, there is no need for modularity.
Generate a random number using ASP.
''**************************************************************************"' Class:crandom' Calls randomize to seed the random number generator.' provides functions for returning ranged random integers or arrays of' Ranged random integers."Calling Randomize to Seed" random number generator at the time the' class is created seemed like a reas
First, the ASP (VBScript) class is made up of events and methods, which are members of the constituent class.
In a class block, a member is declared private (private, only within a class) or public (publicly owned, which can be called outside of a class) by the appropriate declaration statement. The declared Private will be visible only within the Class block. Being declared public is not only visible inside the class block, but also for code outside
Have you heard of the well-known WSH? It is short for Windows Script Host, and WSH is a Script command on Windows platform. It has powerful functions, in addition to modifying the Registry described in this article, it uses the JScript and VBScript languages with simple syntax structure, ease of use, and powerful functions to achieve its outstanding functions, it can also access Excel files and communicate with the network. Of course, its biggest adva
VBScript process
A series of statements encapsulated in sub and End Sub statements
Does not have a return value
Available with parameters
Our subfunction.asp shows the use of sub, with the following code: Submysub (STR1, STR2) Response.Write (Str1Str2)End Submysub"Hello,", "world"Pagermysub ("Hello,", "world")%>VBScript functions
A series of statements encapsulated in functio
Method 1: define two scripts. One is javascript, and the other is vbscript. The function can be called directly.
Method 2: window.exe cScript (code, javascript/vbscript)
ExecScript ('msgbox "aaa", 64, "rock" ', 'vbscript ');
The following are the commonly used functions and their usage in VBScript.
1, getroproperty
Note: you use the getroproperty method to retrieve the current value of a test object property from a run-time object in your application.
In general, all objects can use this method to obtain the actual value of the runtime object.
Syntax: object. getroproperty (property, [propertydata])
For example, buttonname = browser ("QA home page "). Page ("
Have you heard of the well-known WSH? It is short for Windows Script Host, and WSH is a Script command on Windows platform. It has powerful functions, in addition to modifying the Registry described in this article, it uses the JScript and VBScript languages with simple syntax structure, ease of use, and powerful functions to achieve its outstanding functions, it can also access Excel files and communicate with the network. Of course, its biggest adva
/* ------------------- ASP document reference set -----------------------*/
* --> Author: Crawler
* --> Time: 2007-4.28---2007-4.30)
* --> Contact: caolvchong@gmail.com
* --> Document function:
1. I reviewed ASP and deepened my understanding of ASP structure and ASP experience.
2. It can be used for ASP reference and self-written for reference.
This is Part 5: Common VBScript functions in ASP/* ----------------------- Common functions of
VBScript and Simple Form Verification
With Visual Basic Scripting Edition, you can perform a lot of form processing work on the server, or do not work on the server.
This is a simple example of client verification. The result of the HTML code is a text box and a button. Use the following code to view Microsoft (R) Internet Explorer:Created pageYou will see a text box with buttons next to it.
Simple VerificationSimple VerificationEnter 1 To 10 Between:
How to return an array of ActiveX controls written in Delphi to VBScript/JavaScript Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiAPI/html/delphi_20061120161640191.html
Everybody, it is easy to use Vbscript to call ActiveX to send a variant parameter. The content is an array, but in turn it has never been successful. Who knows how to implement the Delphi ActiveX Control to send the array content t
I have been in the software testing industry for many years, and I want to perform automated testing. I also know about VBScript. During the testing processSome applications are also applied, so let's talk about how to use Vbscript to develop automated testing.First, we will introduce several VBScript functions that can be used in automated testing and developmen
Should be miles requirements, but also as an example of class design, I put my design date class process out, written this article, for everyone to make a reference. I also hope this article can be a good way for us to write better and more classes. There are countless places in the article, please correct me.
(i) VBScript custom class
Simply put, a class is an object that has properties and methods. Customizing analogy C++,java in
/*-------------------ASP Document reference set-----------------------* *
*--> Author: paramecium
*--> time: 2007-4.28---2007-4.30 (originally a manual written by oneself, now sent here)
*--> Contact: caolvchong@gmail.com
*--> Document Features:
1. Review the ASP, deepen the understanding of ASP structure and the experience of ASP
2. Can be used as an ASP reference, write their own, reference to more convenient
This is part five: the common functions of VBS
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.