¶ … VBScript
Description of program (script)
Source Code with detailed comments
Source Code should contain
a.VBScript Introduction: Variables, Constants, and Data Types
b.VBScript Output Methods, VBScript Input Methods
c.VBScript Decision-Making Statements
d.VBScript Loop Structures and Arrays
e.VBScript Procedures and Functions
f.VBScript File Input/Output Methods
Explain the output along with screenshots of the output
VBScript refers to a scripting language that is developed by Microsoft to develop a Microsoft product such as Internet Explorer. The Internet Explorer has undergone many changes and has been used as a default scripting language. The Microsoft created VBScript to assist web developers to create dynamic web pages for the Internet Explorer viewers. Although HTML (HyperText Markup Language) can be used to develop a website, however, HTML has some shortcomings in developing interactive web pages. Typically, VBScript has unlocked many tools such as ability to access web server, file system and print current time and date. The VBScript also allows web developers to create dynamic web applications. It is essential for ASP (Active Server Pages) developers to learn VBScript before attempting to develop a sophisticated ASP programming.
Objective of this project is to explore the Vbscript (scripting language).
2.Description of script (program)
The paper uses the "Big World" concept to write the first script of the Vbscript. The use of HTML assist in writing a simple scripts.
document.write ("Big World")
Result:
Big World
Using the ASP source, the VBScript can be written as follows:
Result:
Here is the first VBScript!
Note:
VBScript can only be displayed on the Internet Explorer browser. All the VBScript code should include the script tags "text/vbscript," hence the VBScript program will not function properly.
Source Code with Detailed Comments
VBScript Code
Unlike other programming languages that place semi-colons at the end of all the statements, however, semi-colon is unnecessary when writing the VBScript. The following VBScript code reveals the VBScript program without semicolon.
document.write ("No semicolons")
document.write (" are necessary in developing ")
document.write (" this program!")
Display:
No semicolons are necessary in developing this program.
vbscript multiple line syntax
VBScript also uses the special character to display the code that has multiple line. In this case, the VBScript uses the underscore " to break up the string and multiple lines.
The following code reveals the examples of the break up the string and multiple lines.
document.write ("The statements are very long" &
"that need to be placed onto four " &
"lines in order to be readable!")
Result:
The statements are very long that the need to be placed onto four lines in order to be readable!
5. Source Code
VBScript contains various codes such as Variables, Constants, and Data Types to perform various function.
VBScript Variables
Variables code are "containers" used to store information. However, VBScript Variables are similar to variables being used in Visual Basic. In the case of VBScript, it is necessary to use Dim Statement to declare a variable. Example of VBScript Variable is as follows:
Dim firstname="Tony"
response.write (firstname)
response.write ("")
firstname="Helen"
response.write (firstname)
The script statement written above declares a variable, displays the value as well as assign a value to it. Furthermore, it changes its value, and displays its value again.
Result
Tony
Helen
The script statement written above declares a variable, displays the value as well as assign a value to it. Furthermore, it changes its value, and displays its value again.
The code below also reveals the strategy to insert variable within a text.
Dim name="Alan Peter"
response.write ("His name is: " & name)
Result
His name is: Alan Peter
Creating an array
In the variable, array can be used to store data items. The following variable code reveals how to use array to store names.
Dim famname (5)
famname (0)="David Richard"
famname (1)="Allen"
famname (2)="Billy"
famname (3)="Peter"
famname (4)="Jim Anderson"
famname (5)=" Tony"
For i=0 To 5
response.write (famname (i) & "")
Ne-xt
Result:
David Richard
Allen
Billy
Peter
Jim Anderson
Tony
VBScript Constants
Constant refers to memory location that is used to hold value. However, Constant cannot when executing the script and if there is an attempt to change the Constant Value, the Variable execution will display an error. The Constant syntax can be Private or Public. Although, the Private or Public is optional nevertheless, Public constant can be found in all procedures and scripts. It is also possible to assign Date or String to a declared Constant.
VBScript Constants Code
The example below reveals that the value of pi is 4.14, which displays the area of a circle.
Dim intRadius
intRadius = 30
const pi=4.14
Area = pi*intRadius*intRadius
Msgbox Area
Results
VBScript Data Types
VBScript consists of only one data type namely Variant, and Variant serves as the only data type found in the VBScript, and Variant can consist of string or numeric. The following code is an example of VBScript Data Types.
Dim MyVariant
MyVariant = 41
MyVariant =...
They left that, as they said, to 'future research', but as yet no future research seemingly has been done on that subject. This is the contribution of this study. Research Objective The first step is to replicate Dulay & Burt's (1973) previous study. Times have changed. The educational system has changed. Our aim will be to test whether the 12% of syntactic errors are indeed unique, or whether their appearance is due
In colloquial Polish speech, hyperbaton is associated with strong focus, optimally with symmetrical contrast. However, in literary prose hyperbaton can also occur with weak focus and with unfocused nonlexicals. When presented with examples of the exclusively literary type of hyperbaton out of their literary context, native speakers of Polish either rejected them say-ing that they did not understand why the Y1 modifiers were in hyperbaton, or corrected them into colloquially
, 2007, p. 314). Although it seems rather complex, Chomsky's innateness hypothesis is perhaps the most easily obtained explanation of children's ability to learn a language. Human beings are programmed with a whole host of cognitive abilities when they are born. We have the instinct to suck, learn how to walk without necessarily being taught, and can think without lessons in how to do so, although we may need training or
Instead of analyzing the innate meaning of these examples using a structured technique, Chomsky argues that it is only through subconscious knowledge of transformational grammar that one can truly understand the deeper meaning of language. Of course, this theory has been challenged by many with its emphasis on syntax and lack of focus on semantics, but as Chomsky himself said: But the fundamental reason for [the] inadequacy of traditional grammars is
The illustrations found within the pages of Dr. Seuss stories are also an attention grabber which help keep students focused and tie into the lessons of prepositions and vocabulary. Another simple yet effective method of teaching English to ESL students is to utilize game playing strategies. Games are used in learning since birth, and for adults and kids alike, it is the best way to incorporate all the students together
English Language Learning (Native Speakers) Stage/Age Language Overall Phonology Morphology Syntax Semantics Implications on reading and writing Practical Approaches Birth -3 mo. Cries, responds to tone, attentive to special sounds, and begins to vocalize. Reflexive and diverse cries, coos and gurgles. Verbal play, some consonants, laughing. No understanding Sounds or intensity as opposed to meaning. Music and talk to child Double syllables, MAMA, tunefully vocalize Vocalizes pleasure and pain; initiates speech, reproduces babbles. Increased sounds and imitation Very little understanding Truck red; hungry eat, etc. Use of words and instructi8ons, jargon
Our semester plans gives you unlimited, unrestricted access to our entire library of resources —writing tools, guides, example essays, tutorials, class notes, and more.
Get Started Now