Essay Undergraduate 974 words Human Written

Developing VBScript Program and Networking

Last reviewed: ~5 min read Technology › Syntax
80% visible
Read full paper →
Paper Overview

¶ … VBScript and Networking Systems VBScript is the scripting language developed by Microsoft to assist web developers to create a dynamic website. Typically, VBScript has unlocked different tools that include web server, assessing web server, ability to print date and time. More importantly, the VBScript assists web ASP (Active Server Pages)...

Full Paper Example 974 words · 80% shown · Sign up to read all

¶ … VBScript and Networking Systems VBScript is the scripting language developed by Microsoft to assist web developers to create a dynamic website. Typically, VBScript has unlocked different tools that include web server, assessing web server, ability to print date and time. More importantly, the VBScript assists web ASP (Active Server Pages) developers to understand the sophisticated ASP programming language. On the other hand, computer network is a data telecommunication network that allows data exchange across the network systems. Objective of this paper is to discuss the VBScript and networking.

VBScript Decision-Making Process and Loop Structures VBScript decision-making assists VBScript programmer to edit the execution flow with the assistance of scripts. If statement assists the VBScript to carry out Decision-Making process and the If statements, include: If…Then If…Then…Else ElseIf If statement is a Boolean expression that is followed by one or two or more statements. For example, if a condition is true, the statements within If condition(s) are executed. However, if the Condition is false, the program executes statements after If loop.

VBScript syntax of If statement is as follows: If (boolean_expression) Then Statement 1 Statement n End If Example of VBScript program If statement is as follows: Dim b: b = 30 Dim c: c = 20 If b > c Then Document.write "b is Greater than c" End If The result of above code is: b is Greater than c If…Then…Else This statement assists in doing one task if the condition is affirmative or true, however, a user can do another task if the condition or issue is false.

The VBScript syntax of If…Then…Else statement is: If (boolean_expression) Then Statement 1 Statement n Else Statement 1 Statement n End If Example of VBScript program of If..then ..else statement is as follows: Dim b: b = 10 Dim c: c = 35 If a > b Then Document. write "b is Greater" Else Document.write "b is Greater" End If The result of the above code is: c is Greater Else if Statement Else if statement assists a programmer to execute many expressions.

VBScript Syntax of an ElseIf statement is: If (boolean_expression) Then Statement 1 Statement n ElseIf (boolean_expression) Then Statement 1 Statement n ElseIf (boolean_expression) Then Statement 1 Statement n Else Statement 1 Statement n End If Example Dim a = -6 ElseIf a < 0 Then Document.write "a is a NEGATIVE Number" If a > 0 Then Document.write "a is a POSITIVE Number" Else Document.write "a is EQUAL than ZERO" End If The result of the above code is: a is equal to NEGATIVE Number Loop Structure Loop structure assists a programmer to execute a block of program several times.

For example, the first statement is executed followed by the second statement. In other word, loop structure assists in executing a statement multiple times. For example for loop carries out a repetition of control structure which allows developers to execute a statement specific number of times.

The VBScript syntax for loop is: For counter = start To end [Step count] [statement 1] [statement 2 [statement n] [Exit For] [statement 11] [statement 22 [statement n] Ne-xt Example of VBScript program for loop is: Dim a: a=12 For i=0 to a Step 3 'i is the counter variable and it is incremented by 3 document.write ("The value is I is: " & i) document.write ("") Ne-xt The result of the above code is: The value is I is: 0 The value is I is: 3 The value is I is: 6 The value is I is: 9 The value is I is: 12 2.

VBScript Procedures and User-Defined Functions A Function serves as a reusable code that can be called anywhere within a program. The advantage of Function is that it eliminates the needs to write a program over and over again. Moreover, Functions assist programmer to divide a big program in a manageable form. Functions can be used with the Call keyword.

For example, the following program uses the Call Function program: Function sayDear () msgbox ("Hello dear") End Function Call sayDear () Procedures VBScript has two types of procedures: Sub-procedure Function procedure A Sub-procedure is a series of VBScript statements that is enclosed by the Sub-as well as End Sub-statements. An advantage of Procedure is that it can take argument and perform actions. Functions are similar to Sub-procedures however; the difference between the.

195 words remaining — Conclusions

You're 80% through this paper

The remaining sections cover Conclusions. Subscribe for $1 to unlock the full paper, plus 130,000+ paper examples and the PaperDue AI writing assistant — all included.

$1 full access trial
130,000+ paper examples AI writing assistant included Citation generator Cancel anytime
Cite This Paper
"Developing VBScript Program And Networking" (2015, June 07) Retrieved April 22, 2026, from
https://www.paperdue.com/essay/developing-vbscript-program-and-networking-2151801

Always verify citation format against your institution's current style guide.

80% of this paper shown 195 words remaining