1, requirements: VBScript the functional support of the array is relatively weak relative to other languages, but in the script application often use arrays, even array sorting, such as: traversing a directory of all the files, and then a rule to save to the array.2, the implementation method: Since VBScript itself is not functional enough, you can invoke the functionality of the. NET Framework-related comp
Executeglobal statement
Executes a function multiple statements specified in the script global namespace.
ExecuteGlobal statement
The statement parameter is a string expression that contains one or more executable statements. You can include more than one statement in the statement parameter, separating it with a colon.
Description
In VBScript, x = y can be interpreted in two ways. The first method is to assign a value of y to xas an assignment state
identification method can be said to have its reason, because C language, such as the lower level of the language, the need is the efficiency of execution, and better storage space control, that is, we for the string variable is required to master and allocate the space to store strings, the general string allocation space is much larger than the length of the string , and the C-language auto distribution of variables before the initialization is filled with the garbage value, then to this spac
VB Tutorials > Seventh Lesson use conditional statementsProgram executionUse conditional statements and circular statements to control the Script's process. Use conditional statements to write VBScript code for judging and repeating operations. The following conditional statements can be used in VBScript:· If ... Then ... Else statement· Select Case StatementUse If ... Then ... Else to judgeIf ... Then ...
First, add the WebBrowser object to the HTML page:
After that, use the following code to print:
Key code WB.EXECWB 6,2,3 can actually print directly without prompting in VBScript, but strangely with the same parameters, ie still pops up the print conversation window in Javascript mode, perhaps because VBScript is Microsoft Developed specifically for IE, and Javascript is an outsider after all:
A more compr
Vbscript|vbscript us to analyze the program in (2):
Class Tvprogram
Public StartTime
Public internal_programdate
Public Property Get Programdate
Programdate = Day (internal_programdate) _
"" MonthName (Month (internal_programdate)) _
"" Year (Internal_programdate)
End Property
Public Programtitle
End Class
Dim Objtvshow
Set objtvshow = New Tvprogram
Objtvshow.starttime = CDat
We can use VBScript to quickly batch some Excel files. The VBScript script needs to be saved as a. vbs file, which is very convenient to run by double-clicking.
The following is sample code, save as a Run.vbs file:
' On Error Resume Next
' Define params:
Im Excelapp
Im Objworkbook
Im Objimportsheet
Im path
Path = "C:/users/administrator/desktop"
' Open Excel:
' From http://www.bianceng.cn
Set Exc
Vbscript|web 4. 8 using the vb6.0 call
Need to download MsSoapToolkit20.exe
Add Reference: Microsoft Soap Type Library
Location: "C:\Program Files\Common Files\mssoap\binaries\ MSSOAP1.dll"
Call Method:
Dim cc as New mssoaplib.soapclient
Routines:
New Project Standard Exe add 3 TextBox controls, Text1,text2,text3 Add a button control Command1
The code is as follows:
Option Explicit
Dim cc as New mssoaplib.soapclient
Private Sub Command1_Click ()
C
VBScript when we sometimes need to let the computer automatically restart or shutdown, often use some automatic shutdown software to achieve, but these software in addition to need to install, many still need to charge. And there is no shortage of successful operation after installation.
In fact, you do not have to pay to purchase any Third-party software to achieve automatic shutdown or restart, with a simple VBS
Creating objects
When you create an object type (Class) in VBScript, you first have to know that it's really easy! I self-study in an afternoon, just read the Microsof VB Script reference book, but must admit that this book is not the easiest document to read.
Beginners need to install the VBScript 5.0 engine, which can be downloaded at the Microsoft ' s scripting site.
Let's look at the code. The defini
Turn from: chinabyte
We selected eight different test routines (all the code used in the test is already available in the download zip file later in this article). If the language itself does not have a method or function, write a dedicated method.
1. String Flip: This test is done not only because it is a very representative operation, but because VBScript provides a built-in StrReverse () function and JScript does not have an equivalent function or
Vi and vim Editor (1): vi Text Editor
There are many editors in UNIX systems, which can be divided into two types: Row editor and full-screen editor. The row editor can only display one row of a file on the screen at a time, such as the ed and ex editors. The full-screen
There are many editors in Unix systems that can be divided into two types: the line editor and the full screen editor. The line editor can display only one line of the file at a time, such as the Ed and ex editors, and the full-screen editor displays a portion of the file on the screen.The VI (read as Vee-eye)
vbscript| Variable | server | Client about VBScript and JavaScript how to pass variables (both server side and client)
A: Recently, often encountered a netizen asked, how to make VBScript and Javascipt pass variables. I don't know why I'm doing this. Because almost every scripting language can do what is needed
Function. Why do we need two together? However, we
1. TinyMCE
Free, open source, lightweight online editor, based on JavaScript, highly customizable and cross-platform.2. FCKEditor
Free, open source, a large number of users online editor, with good community support.3. YUI Editor
Belong to the Yahoo! YUI part, can output pure Xhtml code.4. Nicedit
Simple, easy-to-use, lightweight, good-looking online
Upload directory please set in fckeditoreditorfilemanagerconnectorsaspconfig.asp
Dim ConfiguserfilespathConfiguserfilespath = "/userfiles/"
Chinese Configuration Description:Because the download down the package contains a lot of in our use, do not use, do not delete the line. Look at a person like the following PHP as an example, the process of slimming
Delete all files and folders that start with "_"Delete the FCKeditor directory:Fckeditor.afpFckeditor.asp PhpchinaFckeditor.cfcFckeditor.cfm
Eclipse editor Basic settings, Eclipse editor settings1. Add a row number
Right-click the edge
2. Change the font
General font configuration
3. check spelling errors
4. Java code style
Code formatting
Ctrl + Shift + F
Click the New button on the right to create a New style.
Click OK
Braces curly Braces selected
Then, when editing other styles, click the Edit button in the previou
Ueditor Effect Chart
First, Introduction
Ueditor is an open source free editor, developed by Baidu Web front-end Research and Development Department WYSIWYG web editor, with lightweight, customizable, user experience and other characteristics, open source based on the BSD protocol, allowing the free use and modification of code.
Official website:http://ueditor.baidu.com/
Second, download the address
Of
Sometimes I forget the random number function of the program or the random number of javascript and vbscript. I would like to summarize the random number function of the two for future convenience.
1. javascript random number function Math. random ()
Generate random numbers within a specified range
The Math. random () method has no parameters. 0 ~ is returned ~ Random number between 1. If 0 ~ is to be generated ~ Random between n
Number, which can be
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.