programmer2programmer.net
| | Tips | | Microsoft Certification | | Final Year Project Idea | | Connection Strings | | Password Recovery | | SQL Injection | | Encryption & Decryption | | | | LIVE Academic Project | | Project #1 - VB6, Access | | Project #2 - VB.Net, SQL | | Project #3 - ASP, Access | | Project #4 - ASP.NET, C# | | Project #5 - VB6, SQL | | Project #6 - Stegano | | Project #7 - C | | Project #8 - C++ | | Project #9 - JAVA, MySQL | | Project #10- PHP, MySQL | | Project #11- JSP, Oracle | | Project #12- C# Face Exp | | Project #13- Mobile Bank | | Download MBA Project | | MBA Project Topic | | Project Viva Question | |
2018 New Projects | | Project Synopsis Download | | | | University Question Paper, Assignment and Projects | | SMU - Question Paper | | SMU - Assignment | | SMU - Synopsis Projects | | SCDL - Assignment | | IGNOU - Synopsis Projects | | Welingkar - Projects | | Project Report Formats | | | | Interview Question Answer | | General & HR Round | | Visual Basic 6 | | VB.Net & C# | | ASP.Net | | SQL Server | |
Oracle and DBA | | My SQL | | |  | 100% Tested Ready Academic IT Projects | BE, ME, BTech, BCA, MCA, MBA, Bsc-IT, MS, BIT, ADIT, DOEACC, IGNOU, SMU | readymadeproject.com |
|
|
|
One
stop solution for VB6, VB.Net, C#, ASP.Net, Crystal Report, Oracle,
SQL Server, MySql, PHP, XML, AJAX .... |
|
|
VB SCRIPT (Visual Basic Scripting
Edition)
What is Visual Basic Scripting (VB
Script)?
Microsoft Visual Basic Scripting Edition brings active
scripting to a wide variety of environments, including Web
client scripting in Microsoft Internet Explorer and Web
server scripting in Microsoft Internet Information Service
If you already know Visual Basic or Visual Basic for
Applications (VBA), VBScript will be very familiar. Even if
you do not know Visual Basic, once you learn VBScript, you
are on your way to programming with the whole family of
Visual Basic languages. It is not a programming languages it
is a scripting language, There is some difference between
VBScript and VB 6 or VBA.
|
|
|
How it Works?
VBScript talks to host applications using Windows Script.
With Windows Script, browsers and other host applications do
not require special integration code for each scripting
component. Windows Script enables a host to compile scripts,
obtain and call entry points, and manage the namespace
available to the developer. With Windows Script, language
vendors can create standard language run times for
scripting. Microsoft will provide run-time support for
VBScript. Microsoft is working with various Internet groups
to define the Windows Script standard so that scripting
engines can be interchangeable. Windows Script is used in
Microsoft® Internet Explorer and in Microsoft® Internet
Information Service.
Advantages and disadvantages of Using VBScript
Many commercial browsers are not supported VBScript, for
client side scripting it may cause problem, all though
numbers of Internet Explorer (IE) are very high. However you
as developer can not take risk if you are not sure about the
users browser it is safe to use JavaScript as client script
language. In server side development you can safely use
VBScript because the pages are processed in server. Main
advantages of VBScript are for the Visual Basic programmer,
they did not need any new learning to master in VBScript.
Difference Between Visual Basic Language and VBScript
Following Visual Basic Language Features are not supported
in VBScript
VB6
Category
|
Omitted
Feature/Keyword in VBScript
|
Array Handling
|
Option Base
Declaring arrays with lower bound <> 0
|
Collection
|
Add, Count, Item, Remove
Access to collections using ! character
|
Conditional Compilation
|
#Const
#If...Then...#Else
|
Control Flow
|
DoEvents
GoSub...Return, GoTo
On Error GoTo
On...GoSub, On...GoTo
Line numbers, Line labels
|
Conversion
|
CVar, CVDate
Str, Val
|
Data Types
|
All intrinsic data types except
Variant
Type...End Type
|
Date/Time
|
Date statement, Time statement
|
DDE
|
LinkExecute, LinkPoke,
LinkRequest, LinkSend
|
Debugging
|
Debug.Print
End, Stop
|
Declaration
|
Declare (for declaring DLLs)
Optional
ParamArray
Static
|
Error Handling
|
Erl
Error
Resume, Resume Next
|
File Input/Output
|
All traditional Basic file I/O
|
Financial
|
All financial functions
|
Object Manipulation
|
TypeOf
|
Objects
|
Clipboard
Collection
|
Operators
|
Like
|
Options
|
Deftype
Option Base
Option Compare
Option Private Module
|
Select Case
|
Expressions containing Is
keyword or any comparison operators
Expressions containing a range of values using the To
keyword.
|
Strings
|
Fixed-length strings
LSet, RSet
Mid Statement
StrConv
|
Using Objects
|
Collection access using !
|
Following VBScript features are
supported in Visual Basic language.
VBScript Category
|
Feature/Keyword
not supported in VB 6
|
Declarations
|
Class Statement
-Declares the name of a class, as well as a definition
of the variables, properties, and methods that
comprise the class.
|
Miscellaneous
|
Eval
Function
-Evaluates an expression and returns the result
Execute Statement
- Executes one or more specified statements
|
Objects
|
RegExp
Object
- Provides simple regular expression support.
|
Script Engine Identification
|
ScriptEngine
- Returns a string representing the scripting language
in use.
ScriptEngineBuildVersion
- Returns the build version number of the scripting
engine in use.
ScriptEngineMajorVersion
- Returns the major version number of the scripting
engine in use.
ScriptEngineMinorVersion
- Returns the minor version number of the scripting
engine in use
|
Try Yourself
1. Open a text editor type following code.
<HTML>
<HEAD><TITLE>Hello World</TITLE>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Button1_OnClick
MsgBox "Hello to VBScript"
End Sub
-->
</SCRIPT>
</HEAD>
<BODY>
<H3>Welcome to VBScript</H3><HR>
<FORM><INPUT NAME="Button1" TYPE="BUTTON" VALUE="Click Here"></FORM>
</BODY>
</HTML>
2. Save the file "Hello.HTM", open the file in
browser.
3. Click the button it shows the message "Hello to
VBScript"
VbScript Resource
1. www.w3.org
2. www.w3school.com
|
Next Topics 2.
VBScript
Features
|
|
C) Atanu Maity, 2006-2007
|