Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

Note

The behavior of VBScript functions such as MidB, ChrB, LeftB, and AscB depends on the byte ordering of the hardware platform, and the number of bytes used to represent Unicode characters in the system software. The functions will produce different results on different operating systems. The behavior described in this section pertains to the Win32 version.

VBScript Functions

Function

Description

VBScript Abs Function

Returns the absolute value of a number.

VBScript Array Function

Returns an array.

VBScript Asc Function

Returns the ASNI character code corresponding to the first letter in a string.

VBScript Atn Function

Returns the arctangent of a number.

VBScript CBool Function

Returns an expression that has been converted to a Boolean variant.

VBScript CByte Function

Returns an expression that has been converted to a Byte variant.

VBScript CCur Function

Returns an expression that has been converted to Currency variant.

VBScript CDate Function

Returns an expression that has been converted to a Date variant.

VBScript CDbl Function

Returns an expression that has been converted to a Double variant.

VBScript Chr Function

Returns the character associated with the specified ANSI character code.

VBScript CInt Function

Returns an expression that has been converted to an Integer variant.

VBScript CLng Function

Returns an expression that has been converted to a Long variant.

VBScript Cos Function

Returns the cosine of an angle.

VBScript CreateObject Function

Creates and returns a reference to an Automation object.

VBScript CSng Function

Returns an object that has been converted to a Single variant.

VBScript CStr Function

Returns an expression that has been converted to a String variant.

VBScript Date Function

Returns the current system date.

VBScript DateAdd Function

Returns a date to which a specified time interval has been added.

VBScript DateDiff Function

Returns the number of intervals between two dates.

VBScript DatePart Function

Returns the specified part of a given date.

VBScript DateSerial Function

Returns a Date variant for a specified year, month and day.

VBScript DateValue Function

Returns a Date variant.

VBScript Day Function

Returns the day of the month (1-31).

VBScript Exp Function

Returns e raised to a power.

VBScript Filter Function

Returns a subset of a string array based on a specified filter criteria.

VBScript Fix, Int Function

Returns the integer portion of a number.

VBScript FormatCurrency Function

Returns an expression formatted as a currency value.

VBScript FormatDateTime Function

Returns an expression formatted as a date or time.

VBScript FormatNumber Function

Returns an expression formatted as a number.

VBScript FormatPercent Function

Returns an expression formatted as a percentage.

VBScript GetObject Function

Returns a reference to an Automation object from a file. Windows systems only.

VBScript Hex Function

Returns a string representing the hexadecimal value of a number.

VBScript Hour Function

Returns the hour of the day (0-23).

VBScript InputBox Function

Displays a prompt in a dialog box. Client-side only.

VBScript InStr Function

Returns the position of the first occurrence of one string within another.

VBScript InStrRev Function

Returns the position of an occurrence of one string within another, working from the end of the string.

Int

Returns the integer portion of a number.

VBScript IsArray Function

Returns a Boolean value indicating whether a variable is an array.

VBScript IsDate Function

Returns a Boolean value indicating whether an expression can be converted to a date.

VBScript IsEmpty Function

Returns a Boolean value indicating whether a variable has been initialized.

VBScript IsNull Function

Returns a Boolean value indicating whether an expression contains no valid data (Null).

VBScript IsNumeric Function

Returns a Boolean value indicating whether an expression can be evaluated as a number.

VBScript IsObject Function

Returns a Boolean value indicating whether an expression references a valid object.

VBScript Join Function

Returns a string created by joining a number of substrings contained in an array.

VBScript LBound Function

Returns the smallest available subscript for the indicated dimension of an array.

VBScript LCase Function

Returns a string that has been converted to lower case.

VBScript Left Function

Returns a specified number of characters from the left side of a string.

VBScript Len Function

Returns the number of characters in a string or the number of bytes required to store a variable.

VBScript LoadPicture Function

Returns a picture object.

VBScript Log Function

Returns the natural logarithm of a number.

VBScript LTrim, RTrim, Trim Function

Returns a copy of a string without leading spaces.

VBScript Mid Function

Returns a specified number of characters from a string.

VBScript Minute Function

Returns the minute of the hour (0-59)

VBScript Month Function

Returns the number of the month (1-12)

VBScript MonthName Function

Returns a string with the name of the specified month.

VBScript MsgBox Function

Displays a message in a dialog box. Client-side only.

VBScript Now Function

Returns the current date and time set on your computer system.

VBScript Oct Function

Returns a string representing the octal value of a number.

VBScript Replace Function

Returns a string in which a specified substring has been replaced with another substring a specified number of times.

VBScript RGB Function

Returns a whole number representing an RGB color value.

VBScript Right Function

Returns a specified number of characters from the right side of a string.

VBScript Rnd Function

Returns a random number.

VBScript Round Function

Returns a number rounded to a specified number of decimal places.

Rtrim

Returns a copy of a string without trailing spaces.

VBScript ScriptEngine Function

Returns a string containing the scripting language in use.

VBScript ScriptEngineBuildVersion Function

Returns the build version number of the script engine in use.

VBScript ScriptEngineMajorVersion Function

Returns the major version number of the script engine in use.

VBScript ScriptEngineMinorVersion Function

Returns the minor version number of the script engine in use.

VBScript Second Function

Returns the second (0-59).

VBScript Sgn Function

Returns an integer indicating the sign of a number.

VBScript Sin Function

Returns the sine of an angle.

VBScript Space Function

Returns a string consisting of the specified number of spaces.

VBScript Split Function

Returns an array containing a specified number of substrings.

VBScript Sqr Function

Returns the square root of a number.

VBScript StrComp Function

Returns a value indicating the result of a string comparison.

VBScript StrReverse Function

Returns a string in which the character order of a specified string is reversed.

VBScript String Function

Returns a repeating character string of the length specified.

VBScript Tan Function

Returns the tangent of an angle.

VBScript Time Function

Returns a Date variant with the current system time.

VBScript TimeSerial Function

Returns a Date variant with the time for a specific hour, minute, and second.

VBScript TimeValue Function

Returns a Date variant containing the time.

Trim

Returns a copy of a string without leading or trailing spaces.

VBScript TypeName Function

Returns a string that provides Variant subtype information about a variable.

VBScript UBound Function

Returns the largest available subscript for the indicated dimension of an array.

VBScript UCase Function

Returns a string that has been converted to upper case.

VBScript VarType Function

Returns a value indicating the subtype of a variable.

VBScript Weekday Function

Returns a whole number representing the day of the week.

VBScript WeekdayName Function

Returns a string containing the specific day of the week.

VBScript Year Function

Returns a whole number containing the year.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.