|
CSS - August 12, 2008 at 18:00 PM by Amit Satpute
Explain VBScript in detail.
Answer
This is a scripting language developed by Microsoft and is based
loosely on Visual Basic. Its functionality in a web environment is dependant
upon either an ASP engine or the Windows Scripting Host, and must be used on a
Windows hosting platform.
What are string functions in VBScript?
Answer
Asc() - Returns ANSI Character Code
Chr() - Returns Character from ANSI Code
InStr() - Find a string within another
InStrRev() - Find a string within another (Reverse)
LCase() - Convert a string to lowercase
Left() - Crops a string from left
Len() - Determine the length of a string
LTrim() - Remove leading spaces from a string
Mid() - Crops a string
Replace() - Replace a substring within a string
Right() - Crops a string from right
RTrim() - Remove trailing spaces from a string
Space() - Creates a string with the specified number of spaces
StrComp() - Compare two strings
String() - Creates a repeated character string
StrReverse() - Reverse the characters of a string
Trim() - Remove both leading and trailing spaces from a string
UCase() - Convert a string to uppercase
Explain few date functions in VBScript.
Answer
Date(), Time(), Now(), Left(), Right(), & Mid()
What is event handling?
Answer
The actions that are performed by clicking, pressing keys, moving mouse,
dragging and dropping etc are called as events. Event handling is the way to
capture these events and perform the actions accordingly.
|