R4R
Right Place For Right Person TM
 
R4R VBScript

R4R
provide basic VBScript Tutorials concept with VBScript Examples . Through R4R you can develop VBScript programming concept. R4R provide VBScript Interview Questions with answers.R4R provide VBScript Languages study materials in easy way.

Introduction of  VB Script:

VBScript (Visual Basic Scripting Edition) is a scripting language developed by Microsoft for Windows operating systems.VBScript, the newest member of the Visual Basic family of programming languages .Visual Basic Script is a scripting language designed to enhance HTML pages and provide functionality such as data validation, forms and interaction with Active X objects. It is a subset of Visual Basic, and embedded into an HTML document and interpreted by the client browser. At this time, only Internet Explorer supports VBScript.

History of VBScript:

VBScript began as part of the Microsoft Windows Script Technologies, launched in 1996. This technology (which also included JScript) was initially targeted at web developers. During a period of just over two years, VBScript advanced from version 1.0 to 2.0, and over that time it gained support from Windows system administrators seeking an automation tool more powerful than the batch language first developed in the late 1970s.The version 3.0 of MS Internet Explorer has supported both JavaScript and VBScript. After some time, the latter version was called as version 5.0. VBScript was very much welcomed by various system administrators all around the world. Microsoft incorporated many features in the Version 5.0 of VBScript like inclusion of regular expressions, with statements, global functions, classes and much more. Currently, VBScript is managed and maintained by a special team of Microsoft; also called as the Microsoft’s Sustaining Engineering Team. This team is currently responsible for fixing all the bugs and for taking care of various security features.

Difference Between VBScript and Javascript:

  1. Javascript case sensitive where's VBScript not case sensitive.
  2. Javascript will be run on client side where's VBScript will be run on server side.
  3. JavaScript is the default scripting language for browsers but VBScript must be specified as the scripting language.
  4. JavaScript has cross-platform support from all popular browsers while VBScript is supported MS IE only.
  5. JavaScript uses the same character for concatenation as it does for addition (the + character) while the '&' concatenating character is used in VBScript.
  6. VBScript allows you to define public/private members in classes, whereas in JavaScript, all members are (basically) public.
  7. VBScript supports passing "by reference" whereas JavaScript only allows passing "by value."

Similarities:

1. Both languages are easy to learn and do not require any expensive development tools
2. Both can be used to enhance web pages
3. They run on client machines and can substitute CGI programs to reduce server loads
4. Both can abuse and run malicious scripts on clients' machines

Simple Example Of VbScript:

<HTML>

<HEAD>

<TITLE>My Company Name</TITLE>

<SCRIPT LANGUAGE="VBScript">

<!--
document.write("R4R TECHSOFT PVT. LTD. (Ghaziabad,INDIA)")
-->

</SCRIPT>

</HEAD>

<BODY>

Advantage of VBScript:

  1. No installation required: This is the number one reason VBScript is so widely used. Since you can run VBScript code on any Windows 2000 and later computer without needing to install anything, this makes it much easier to support on a lot of computers.
  2. Popular on Windows: Because VBScript comes out of the box with Windows and was developed by Microsoft, naturally there is better support for it.
  3. Built-in support for COM Automation and WSH.
     
  4. Readable

VBScript code is generally very readable. Here is some sample VBScript code that should be pretty easy for even non-programmers to decipher:

Disadvantage of VBScript:

  1. Limited command-line parsing and GUI support.
  2. Limited third-party module/add-on support.
  3. No command-line code execution support.
     

Tolal:0 Click:
Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

Tutorials,Examples,Questions and Answer

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R