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
object, and the Strmyvar = Objobject.methodname (Strmyvar) can be used instead of Strmyvar =functionname (Strmyvar). The writing is different, but the function is the same. An example of an attribute is the Expireabsolute in Object Response, Response.ExpiresAbsolute = CDate ("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 w
/*-------------------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
read and write.
Method
Addcode method: Adds the specified code to the module. You can call the Addcode method multiple times.
AddObject method: Make the Host object model available to the Script engine.
Eval method: Evaluates an expression and returns the result.
Executestatement method: Executes the specified statement.
Reset method: Discard all Script code and objects that have been added to the ScriptControl.
Run method: Runs the specified procedure.
Event
Error Event: This event occurs when
Here are the functions and their uses that I've summarized in VBScript.
1,getroproperty
Description: Use the "Getroproperty method" to retrieve "current value of" a test object property from a Run-time object in your Application.
In general, all objects can use this method to get the actual value of the Run-time object.
Syntax: Object. Getroproperty (property, [Propertydata])
such as Buttonname=browser ("QA home Page"). Page ("QA home Page"). W
Microsoft|vbscript| Error | resolution
When using VBScript for ASP development, some friends will encounter similar errors as follows:Microsoft VBscript run-time error ' 800a000d 'Type mismatch: ' ******* '/solweb/sdbottm_right.asp, Line 80
Error Reason:This error is due to the Internet Explorer 6 Service Pack 1 (KB832894) security update that was installed on t
I have been in the software testing industry for many years, my own direction is also automated testing, VBScript script is also known, in the test processAlso applied, so let's talk about how to use VBScript to develop automated tests.First, a few of the functions of VBScript that you can use in automated test development are introduced.1. InStr functionDescribe
Vbscript|vbscript Preface
First, before I go into the substantive topic and explain how to create a class, I want to make sure you know "object." Although you can use objects in a program without having to know the correct rules, I don't recommend it! For beginners of the object, the next section will let you understand its concepts and content. Readers who already understand object-oriented programming (O
vbscript| function | Interactive |vbscript| function | interaction
First, let's look at a piece of code like this:This is achieved when the click of the button, pop-up message box, show welcomewhichA sub defines a procedure that contains two parts:Button1 is the button name (obtained from the Name property in the OnClick is the event name, which is the Button1 onclick event where two parts are connected wit
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.