Round, Int and Fix & CINT functions

Round, Int and Fix & CINT functions Round: Returns a number rounded to a specified number of decimal places The following example uses the Round function to round a number to two decimal places: Dim MyVar, pi pi = 3.14159 MyVar = Round(pi, 2) ‘ MyVar contains Int and Fix functions: Returns the integer portion [...]

VB script function & variable

Array Function:  Returns a Variant containing an array.  Array(arglist) The required arglist argument is a comma-delimited list of values that are assigned to the elements of an array contained with the Variant. If no arguments are specified, an array of zero length is created.  Remarks The notation used to refer to an element of an [...]

Difference b/w Eval & Execute

Eval & Execute Statement Eval: Evaluates an expression and returns the result. (True (-1)  & False (0)) Required. String containing any legal VBScript expression In VBScript, x = y can be interpreted two ways. The first is as an assignment statement, where the value of y is assigned to x. The second interpretation is as [...]

VBScript Features

The following table is a list of VBScript features. Array handling:  Dim, Private, Public, LBound, UBound, IsArray , Erase, ReDim Assignments Set Comments Comments using ‘ or Rem Constants/Literals  Empty Nothing Null True, False Control flow Do…Loop For…Next For Each…Next If…Then…Else Select Case While…Wend With  Conversions Abs Asc, AscB, AscW Chr, ChrB, ChrW CBool, CByte CCur, CDate CDbl, CInt CLng, CSng, [...]

Dictionary Object

Object that stores data key, item pairs. A Dictionary object is the equivalent of a PERL associative array. Items can be any form of data, and are stored in the array. Each item is associated with a unique key. The key is used to retrieve an individual item and is usually a integer or a [...]

VBScript Keywords

VBScript Keywords empty: Used to indicate an uninitialized variable value. A variable value is uninitialized when it is first created and no value is assigned to it, or when a variable value is explicitly set to empty. Example: dim x ‘the variable x is uninitialized! x=”ff” ‘the variable x is NOT uninitialized anymore x=empty ‘the [...]

VBScript functions

Functions in VbScript – Date, Time Functions Function CDate: Converts a valid date and time expression to the variant of subtype Date Date : Returns the current system date DateAdd: Returns a date to which a specified time interval has been added DateDiff: Returns the number of intervals between two dates DatePart: Returns the specified [...]

Follow

Get every new post delivered to your Inbox.