Can we pass optional argument to function in VBScript?
Yes, We can pass optional argument to VBScript functions.We can use optional argument in VBScript by specifying optional keyword.
Define subtypes of data that a Variant data type in VBScript?
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
How you define Option Explicit in VBScript?
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.Reply
How Sub Procedures and Function Procedures are differ in VBScript?
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.
If you want to done calculation.Than Using Sub Procedures we can displays the results of a calculation based on that information.
temp = InputBox("Enter temperature in degrees F.", 1)
MsgBox "Temperature is " & Celsius(temp) & " degrees C."
And Using function procedure we performed the calculation using VBScript.
Celsius = (fDegrees - 32) * 5 / 9
Define Tristate constants in VB Script?
We can allow formatting of numbers by using Tristate constants with functions. Tristate functions are used to reflect and represent the values any where in the code.Without defining Tristate constant it can be used with Vb Script.Reply
How you define ADODB.Stream class?
We can use ADODB.Stream class as string builder. Because using VBScript string concatenation we can frequent memory allocation features.So,It is very costly.ADODB.Stream class provide us Binary file and memory I/O operation.Using this we can convert bytes into string etc.Reply
scrrun.dll(Scripting Runtime library) is an important library which is used for the functioning of Visual basic script.We can improve some functionality like that File management, text operations and file modification features. Reply
Explain the functionality of VB Script?
Using Active X technology we give much more functionality to VB Script.VB provide us sub routines, functions, string manipulation, data/time , error handling etc. We can increase the functionality of VB by using language like that ASP.Reply
Define some use of VB Script?
As per functionality we can say that VB Script acts same to Java Script.But VB Script is only compatible with internet explorer. VB Script act with Document object model.We can use Visual basic script used for server side processing with ASP. Reply
Can VBScript can directly run on users system with Windows as OS?
Yes, VBScript can directly run on users system with Windows as OS.I explain with an example The running of VB Script is by utilizing Windows Script Host environment.In this input enter through GUI(Graphical User Interface) and output receives from Wscript.exe .It can be raised by Cscript.exe from command line.Reply