VBScript
PowerDesigner 9 's Open and custom Configuration feature.
The introduction of Visual Basic scripting has enabled PowerDesigner 9 to have a powerful open feature. With this simple programming language, users can add the required functionality to their PowerDesigner applications as they wish.
In this design blueprint, we will explain this feature in detail through an example.
Brief introduction
Microsoft Corporation defines a simple
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
VBScript functions
Function descriptionExampleABS (value) absolute value. The absolute value of a number is its positive value. The absolute value of an empty string (null), also an empty string. Uninitialized variables, which are absolutely 0 examples: ABS (-2000)Results: 2000
Array (a comma-delimited array element) Array function returns the value of an array element. Example:A=array (1,2,3)B=a (2)Results
Any real practical engineering development must be multiple files. But VBScript creates a multiple-file project that's a bit tricky, and it's not too good for multiple file engineering and code reuse support. In C + + engineering, we have become accustomed to using an include statement and declaring a function prototype to use functions in other modules, such a complex project can be easily decomposed into small modules to make it easier to understand
1 Examples of functionsPhp:function Inc ($val){return $val 1;}A procedure is also a function, except that there is no return value.JScript, javascript:Function Inc (VAL){return val 1;}The definition of the process is ibid.VBScript:Function Inc (VAL)inc = Val 1End FunctionProcedureSub Inc2 (ByRef val)val = val 1End Sub2 Examples of classesPhp:Class Parent {var property;function parent () {}Function method ()
Execute statement
Executes one or more of the specified statements.
Execute statements
The required Statements parameter is a string expression that contains one or more statements to execute. If you want to include more than one statement in the statements parameter, you should separate it with a semicolon or an embedded branch.
Description
In VBScript,x = y can be interpreted in two ways. The first is to assign the value of y to xas an assignment st
regular expression.RegEx. pattern = patrn 'setting mode.RegEx. ignorecase = true' is used to set Case sensitivity.Regexptest = RegEx. Execute (strng.End Function
Msgbox (regexptest ("is.", "is1 is2 is3 is4 "))
◎ Pattern attributes
Set the pattern attribute or return the regular expression pattern to be searched.SyntaxObject. Pattern [= "searchstring"]The syntax of the pattern attribute includes the following parts:
Syntax description:Required. Always a Regexp object variable.Searchstring is o
Pattern attributes
Set or return the regular expression pattern to be searched.
object.Pattern [= "searchstring"]Parameters
Object
Required. Always oneRegExpObject variable.
Searchstring
Optional. The regular string expression to be searched. It may containSetThe regular expression characters in some tables.Set
Special characters and sequences are used when writing regular expressions. The following table describes the characters and sequences that can be used and provides
Private statement
Define private variables and allocate storage space. Define a private variable in the Class block.
Private varname[([subscripts])][, varname[([subscripts])]] . . .
Parameters
VarName
The name of the variable, followed by the standard variable naming convention.
subscripts
The number of dimensions of an array variable that can declare up to 60-d arrays. The subscripts parameter uses the following syntax:
Upper [, Upper] ...
The lower bound of an array is always 0.
Description
A
, WSH Support scripting language has JScript (Microsoft version of JavaScript, and true JavaScript is not the same) and vbscript--this dongdong everyone must be familiar with, the Web page is commonly used.
The WSH script engine (scripting Engine) has two ways, one is the CScript.exe of the command, and the other is the WScript.exe of Windows. The Scripting Programs we write (plain text files with the extension ". js" and ". vbs") must be loaded to r
In many forums, VBScript has seen a better question about which VBScript and JavaScript should be used.
Today I would like to talk about my opinion:
Server side:
It is known that ASP supports both scripting languages, which is the same on the server side, but most people in the server
End with VBScript more, for beginners generally use
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
If Javascript and vbscript data sharing is flawed, please point out, thank you
1. common global variables
There are many methods to reference a global variable in browser. you can directly reference this variable or use window. variable is used to reference global variables because the global variables belong to the window form. However, when a new window is opened, the browser automatically clears the existing variables (that is, each newly opened p
How to decrypt the jsvbsvbscript encryption code different processing encryption code is a very good principle of encryption and decryption. I hope you will carefully study the js/vbs/vbscript encryption code:
Source code variation Processing
JS webpage Encryption VBS web page Encryption VB Script Encryption Note: Encrypt the contentCopy to the box,Click the corresponding button,You can complete the operation. If a
PHP, JScript, and VBScript functions and class syntax. 1) function example php: functioninc ($ val) {return $ val + 1;} is also a function, but no return value. Example of the jscript, javascript: functioninc (val) {returnval + 1;} process 1) function
Php: function inc ($ val)
{Return $ val + 1 ;}
The process is also a function, but there is no return value.Jscript, javascript:Function inc (val){Return val + 1 ;}The process is defined as above.VBScri
What is a variable?
A variable is a handy placeholder for referencing a computer's memory address, which stores program information that can be changed when the Script is run. For example, you can create a variable named Clickcount to store the number of times a user clicks an object on a Web page. Using a variable does not require an understanding of the variable's address in the computer's memory, as long as you can view or change the value of the variable by referencing the variable name. The
Turn: http://www.cnblogs.com/waver/articles/1283842.html
================================== VB Code ======== ======================================
Public Function SaveFile (filename as variant, strfilebody as variant) as Boolean
Dim ado_stream as objectSet ado_stream = Createobject ("ADODB. Stream ")
With ado_stream. Type = 2. Mode = 3. Charset = "UTF-8". Open. Writetext strfilebody. Savetofile filename, 2EndSaveFile = trueSet ado_stream = nothingEnd Function
Public Function readutf8 (byval
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.