js|jscript|vbscript|web| programs use VBScript and JScript to write Web applications (iii)
3, case-sensitive and naming habits
JScript is strictly case-sensitive: in each JScript keyword, in all parts of each JScript namespace,
You can use uppercase and lowercase letters in a proper combination. This includes all the key to the object model you use
Word. For example, when you use an ASP to response objects
();
----------------------------------------------------------------------------
ASP VBScript Syntax
----------------------------------------------------------------------------
Copy Code code as follows:
Set parameter = command. CreateParameter (Name, Type, Direction, Size, Value)
Parameter ditto
Here's an example of all the News Tsing published
---------------------------------
Vbscript|visual
New easy to set (Assignment) syntax
Visual Basic.NET provides new, simplified syntax, when the code is written as follows
Myval = 10
Myval + 10
The value of this myval is 20, and the code is equal to
Myval = Myval + 10
Inherit (inheritance)
Visual Basic.NET is now a complete object-oriented (object Orient) language, which is the way to complete s
Use VBScript and JScript on Web pages
Author: Winsky Finishing Date: 2004.06.26
Summary: This article discusses the differences between VBScript and JScript, and how they are used. The article also discusses:
l VBScript and JScript in Visual InterDev
L Inline Server scripts and
It is noteworthy that in these two examples language this property is set to "Ja
of regular expressions is a language with unknown string processing capabilities. VBScript is a subset of Visual Basic and has rich string processing functions. Similar to C, JScript does not have this capability. Regular Expressions significantly improve the string processing capability of JScript. However, it may be more efficient to use regular expressions in VBScript. It allows multiple string operatio
to a Web page from a message box." One way to do this is to embed the hyperlinks in a message box, but unfortunately, as we've said above, using VBScript is not a good idea. So let's try something else to see: Why don't you pop up a message box and ask the user: "Do you want to apply for access to this resource?" "Then?" If the user clicks No, the script is aborted. If the user clicks Yes, the script will automatically bring the user to the appropria
javascript|vbscript| Variable | server | Client One: 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 can tell you. It's perfectly OK. Below, about why can the concept, yesterday I spoke for half a day, still have ne
method: Make the Host Object Model Available to the script engine.Eval method: calculates the expression and returns the result.Executestatement method: run the specified statement.Reset method: discard all script code and objects that have been added to scriptcontrol.Run method: run the specified process.EventError Event: This event occurs when a running error occurs.Timeout event: This event occurs when the time specified by the timeout attribute is exceeded and the end is selected in the res
1. Select Add class-MFC class in typelib.2. Select Add from the registry at c: \ windows \ system32 \ VBScript. dll.3. Generate the class file cmatch. h cmatch2.h cmatchcollection. h cmatchcollection2.h cregexp. h cregexp2.hCsubmatches. h4. Set # import "C: \ WINDOWS \ system32 \ VBScript. dll \ 3" no_namespaceChange to # import "progid: VBScript. Regexp" no_name
Jscript and vbscript code for operating XML element attributes. For more information, see.
Jscript and vbscriptFor more information, see.
Although attributes belong to a particular element, they are not considered child nodes of element nodes. Instead, they behave more like properties of IXMLDOMElement. Most of the methods for working with attributes come from IXMLDOMElement. Attributes can be manipulated in the following ways. Directly, through the
VBScript Code:
Copy Code code as follows:
' Create a WSH Shell object:
Set WshShell = CreateObject ("Wscript.Shell")
'
' Create a ' new key:
WshShell.RegWrite "hkcu\testkey\", "" "
' Create a new DWORD value:
WshShell.RegWrite "Hkcu\testkey\dwordtestvalue", 1, "REG_DWORD"
' Create a new subkey and a string value in ' New subkey:
WshShell.RegWrite "Hkcu\testkey\subkey\stringtestvalue", "Test", "REG_SZ"
' Read The values we j
VBScript Coding Conventions
Coding conventions are some of the recommendations that help you write code using Microsoft Visual Basic scripting Edition. The encoding convention contains the following:
Naming conventions for objects, variables, and procedures
Annotation conventions
Text formatting and indenting guides
The main reason for using a consistent coding convention is to standardize the structure and coding style of a script or script set so th
Need to use identity card verification work, but also to support the examination of 15-bit and 18-bit.
I temporarily lazy, ask colleagues have no ready-made functions available, colleagues Google a bit, throw me a asp-vbscript version of the function.
But my side is the client JavaScript ah, so with the change Vbs-->js
After the change found good use, and found that VBScript really very long-winded, incredi
Asp/vbscript to parse JSON characters into JSON objects, it's easy if ASP uses JScript to write server-side code to manipulate the JSON string. VBScript requires Msscriptcontrol.scriptcontrol or server-side JScript as an intermediate.
VBScript method of parsing JSON characters into JSON objects
Using the Msscriptcontrol.scriptcontrol component, run this example
Vbscript|vbscript Create 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
Turn from: chinabyte
The test is done on a desktop system, configured to: 400MHz Celeron processor, 128 MB RAM, operating system Windows Server (5.00.2195), and the Web server is running ASP 3.0 (Asp.dll 5.0.2180.1) IIS 5.0.2157.1. The version of the script engine (JScript and VBScript) is 5.1.0.4615. The system runs a minimal number of services during the test, and the minimum number remains unchanged to ensure the stability of the test environment a
The Eval function in the vbscript| function JavaScript allows us to easily manipulate a range of variables (a1,a2,a3,...... )。 Since VBScript 5.0, we can also use this feature in ASP!
I am grateful to the programming enthusiasts Forum friends raised the problem, let me learn more about this very useful function.
Like JavaScript, eval () evaluates the value of the variable in which the string is represented
No way. You need to write some asp files.
Code Depressed. Put a function table for future reference.
VBScript (ASP) common functions:
1. Numeric functions:
ABS (Num): returns the absolute value.SGN (Num): num> 0 1; num = 0 0; num Hex (Num): returns the hexadecimal value for direct representation: hxx maximum 8 bitsOct (Num): returns the octal value and indicates the maximum 8 bits of oxxSqr (Num): returns the square root num> 0INT (Num): in
VBScript Split function usage
Usage: return array = Split (original string, string to find, split into several arrays)DescribeReturns a zero-based one-dimensional array that contains the specified number of substrings.GrammarSplit (expression[, delimiter[, count[, compare]])
For example, a comma (,) splits a string into an array
Copy Code code as follows:
Str= "1,2,3,4"
Strarr=split (str, ",")
For i=0 to UBound (Strarr)
MsgBox
executed in the body of a Function procedure.
Expression
The return value of the Function.
The arglist parameter contains the following syntax and parts:
[ByVal | BYREF] varname[()]
Parameters
ByVal
Indicates that the parameter is passed in a value manner.
Byref
Indicates that the parameter is passed by reference.
VarName
Represents the name of a parameter variable, followed by a standard variable naming convention.
Description
If you do not explicit
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.