O'Reilly logo

VBScript in a Nutshell by Ron Petrusha, Paul Lomax, Matt Childs

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

String Manipulation

Asc Function

Returns a number representing the ASCII character of the first character of a string

AscB Function

Returns the value of the first byte in a string

AscW Function

Returns the native character code of the first character in a string (Unicode or ANSI)

Chr Function

Returns a string containing the character associated with the specified character code

ChrB Function

Returns a string containing the specified single byte

ChrW Function

Returns a variant string containing the specified native character (Unicode or ANSI)

Execute Method

Performs a regular expression search on a string

Filter Function

Returns an array of strings matching (or not) a specified value

FirstIndex Property

Returns the starting position in a search string where a regular expression match represented by a Match object occurred.

FormatCurrency Function

Returns a string variant formatted using the currency settings for the current locale

FormatDateTime Function

Returns a string variant formatted using the date settings for the current locale

FormatNumber Function

Returns a numeric variant formatted to a specified format

FormatPercent Function

Returns a numeric variant formatted using the % symbol

Global Property

Indicates whether a RegExp object’s pattern should match all occurrences in a search string or just one

IgnoreCase Property

Indicates whether or not a RegExp object’s pattern match should be case-insensitive

InStr Function ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required