VBScript

VBScript Projects

VBScript Project 1

VBScript Examples

VBScript EXAMPLE



Totel:29 Click: 1 2 3 4 5 6
VBScript Interview Questions And Answers

Page 1

 Yes, We can pass optional argument to VBScript functions.We can use optional argument in VBScript by specifying optional keyword.

 Parametrization is useful when we want to change object's parameters in accordance with a mathematical rule, or data from a file.
  We can say that Parametrization is the best way to protect your database from SQL injection attacks.

 Subtypes of data that a Variant data type in VBScript are given below:

Byte    - Between 0 to 255
String  - Character strings
Integer - Between -32,768 and 32,767
Long    - Between (-2,147,483,648 and 2,147,483,647)
Double  - Extremely large numbers with decimal points
Empty   - The value that a variant holds before being used
Error   - An error number
Null    - No valid data
Single  - Large numbers with decimal points
Currency- Monetary values
Date    - Date and time
Object  - Objects
Boolean - True and False

 If you want to use Option Explicit in VBScript you should have to declare all variables using the Dim, Private, Public, or ReDim statements.
 Using Option Explicit to avoid incorrect typing the name of an existing variable or to avoid confusion in code where the scope of the variable is undefined.

 VBScript support two types of procedures. These are Sub Procedures and Function Procedures
 The main difference b/w Sub Procedures and Function Procedures are given below:
1.In case of Sub Procedures we write series of VBScript statements inside the Sub and End Sub statement Where as in Function Procedures we write series of VBScript statements inside the Function and End.
2.Sub Procedures does not return any value where as Function Procedures return a value.
3.Procedures has two build-in VB Script functions these are MsgBox and InputBox.
Example:
If you want to done calculation.Than Using Sub Procedures we can displays the results of a calculation based on that information.

Sub ConvertTemp()
temp = InputBox("Enter temperature in degrees F.", 1)
MsgBox "Temperature is " & Celsius(temp) & " degrees C."
End Sub
And Using function procedure we performed the calculation using VBScript.

Function Celsius(fDegrees)
Celsius = (fDegrees - 32) * 5 / 9
End Function


Goto Page:

1 2 3 4 5 6
VBScript Objective Questions And Answers

VBScript Objective Questions And Answers

VBScript Interview Questions And Answers

VBScript Subjective Questions And Answers


R4R,VBScript Objective fresher and experienced, VBScript Subjective fresher and experienced ,VBScript Interview Questions And Answers,VBScript fresher and experienced,VBScript Interview fresher and experienced ,VBScript Questions fresher and experienced,VBScript Answers fresher and experienced