<< < 1 2 3 4 5 6 >   Sort: Rank

"Select Case" Statements
This section describes how 'Select Case' statements work. If one of the expected value in a case clause equals to the test value, the statement block in that case clause will be executed.
2022-10-01, 152🔥, 0💬

"New" Operator and "Nothing" Object
This section provides a tutorial example on how to define the Class_Initialize procedure to be called by the 'New' operator, and the Class_Terminate procedure to be called when the object lost its last reference.
2022-10-01, 152🔥, 0💬

Example - Passing Arguments by Value
This section provides a tutorial example on how to pass arguments by value to swap values passed through procedure arguments. By this example will not work.
2022-10-01, 151🔥, 0💬

Built-in Conversion Functions
This section provides a list of commonly used built-in conversion functions.
2022-10-01, 151🔥, 0💬

"Class" Statement - Defining Your Own Class
This section provides a tutorial example on how to create a class and instantiate a new object. The TypeName() function returns the class name of the specified object.
2022-10-01, 150🔥, 0💬

Built-in Misc. Functions
This section provides a list of commonly used built-in misc. functions.
2022-10-01, 149🔥, 0💬

DOM API - The "window" Object
This section provides a quick description of the 'window' object of the DOM API. A tutorial example is provided on changing browser window size through the 'window' object.
2022-10-01, 148🔥, 0💬

"*" - Arithmetic Multiplication Operation
This section provides some detail rules and a tutorial example on how arithmetic multiplication operation works in VBScript.
2022-10-01, 147🔥, 0💬

"Folder" Objects Representing File Folders
This section describes Folder object and its properties and methods. A tutorial example is provided on how to list all properties of a file folder.
2022-10-01, 147🔥, 0💬

"While" Statement Examples
This section provides a tutorial example on how to use 'while' statements to repeat a block of statements.
2022-10-01, 146🔥, 0💬

"Do ... Loop" Statements
This section describes how 'Do ... Loop' statements work in VBScript. A block of statements is repeated based on the specified condition.
2022-10-01, 146🔥, 0💬

"FileSystemObject" Objects to Manage File Systems
This section describes FileSystemObject properties and methods. A tutorial example is provided on how to create a folder, copy files, and get file information.
2022-10-01, 146🔥, 0💬

Example - Variable Scope in Procedures
This section provides a tutorial example on validating scope of global variables in the main code and local variables in procedures.
2022-10-01, 143🔥, 0💬

Interacting with External Applications - ActiveX Data Object (ADO)
This section provides a tutorial example on how to pass values from one page to another. This example is a very simple registration application with two ASP pages.
2022-10-01, 143🔥, 0💬

What is ASP (Active Server Pages)?
This section describes the ASP (Active Server Pages) technology that allows you to write VBScript code inside HTML documents for the Web server, IIS, to execute. The VBScript code can provide dynamic contents into the final HTML document to be delivered to the client machine.
2022-10-01, 141🔥, 0💬

"Function" Statement and Function Call
This section describes how to define and invoke a function procedure. Assigning a value to the procedure name in the function procedure sets the return value.
2022-10-01, 137🔥, 0💬

Passing Arguments to Procedures
This section describes rules on how arguments can be passed from the calling code into the called procedure by reference (the default) or by value.
2022-10-01, 137🔥, 0💬

Commonly Used Types of Statements
This section provides a list of commonly used types of statements. Simple examples of statements are also provided.
2022-10-01, 133🔥, 0💬

Using VBScript with Internet Explorer 11
This section provides tutorial example on how to enable script running and disable 'Edge' mode in IE 11 to load Web pages embedded with VBScript code.
2022-04-01, 5934🔥, 5💬

💬 2021-01-03 Herong: Rory, thanks for sharing the information!

💬 2020-12-29 Rory Sellers: I found this extremely clear and timely! Thank you. There was one slight deviation from what I found on my Win 10 (IE11) laptop:...

💬 2020-05-11 Herong: John, I moved your question here under the correct tutorial topic. Hope others can help you out as I don't have IE 11 anymore.

💬 2020-05-11 John: I have followed your article and Updated IE 11 3 Times Trying to get the Latest Version. But the Persist Emulation Settings Butt...

Using Visual Basic with Microsoft Access
This section provides tutorial example on how to add a Visual Basic code in Microsoft Access database to be executed as a macro on database tables.
2022-02-27, 5762🔥, 10💬

💬 2022-02-27 bob: this didnt help

💬 2021-10-27 fahis: lets go

💬 2018-08-11 Herong: trina, I will make corrections. Thanks for the comment.

💬 2018-08-11 trina: Why spreading misinformation? Pages like this are confusing for new users, with half-facts and limited instruction. First: Acces...

💬 2016-12-12 DICKSONBALIKURUNGI: THANKS

Including VBScript Code as External Files
This section provides a quick description of how to save VBScript code into separate files and include them into HTML documents with 'script' tags. A tutorial example is provided on calling a function stored in a separate VBScript file.
2022-01-02, 3179🔥, 4💬

💬 2022-01-02 Herong: Cody, you can try the suggestion in VBScript Support in IE Web Browsers

💬 2021-12-28 Cody Shmaz: Is it possible to right a MsgBox() on a web page? thanks!

💬 2017-01-21 Herong: Jason, I am not sure if that is doable to install a printer with a VB script on a Web page. May be make the image as a download ...

💬 2017-01-19 Jason: Have vb script created that will map network printers on our network, created page on IIS for users to use and want them to clic...

"oShell.Exec(cmd)" - Running System Command with a Script
This section provides a tutorial example on how to run a system command with a VBScript code. Command output and status can be monitored with WshScriptExec properties.
2021-06-02, 7294🔥, 3💬

💬 2021-06-02 BensonLEI: Hi, all, Could you please help if any recommendation of saving the output into the local text file? Dim objShell, objExec, sLine...

💬 2016-12-14 Herong: Hari, Yes, you can try this: host = "herongyang.com" Set oExec = oShell.Exec("ping " & host)

💬 2016-12-12 hari: how can i pass a variable to the command

Examples of Expressions
This section provides a tutorial example showing you different types of expressions.
2020-06-20, 222🔥, 2💬

💬 2020-06-20 Herong: Ekko, Thanks for the interesting example. So the statement, "Operations of the same precedence value must be evaluated from left...

💬 2020-06-17 Ekko: There is another special precedence: Dim b, c, d b = c = d will be interpreted like b = (c = d)

VBScript Tutorials - Herong's Tutorial Examples
This VBScript tutorial book is a collection of notes and code samples written by the author while he was learning VBScript (Visual Basic Scripting Edition) himself. Topics include: The Variant Data Type with Subtypes; Fixed-Size and Dynamic-Size Arrays; Function Arguments Passed by References and by...
2020-04-25, 8590🔥, 2💬

💬 2020-04-25 my name is idiot: Me wants it die

💬 2016-05-23 Herong: James, your email address is not working. Please contact me.

<< < 1 2 3 4 5 6 >   Sort: Rank