Section B.22. String Manipulation

   

B.22 String Manipulation

Element

Description

Asc, AscW functions

Return the character code of the first character of a string

Chr, ChrW functions

Return a string containing a character based on its numeric code

Filter function

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

Format function

Returns a string formatted to a given specification

FormatCurrency function

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

FormatDateTime function

Returns a string formatted using the date/time setting for the current locale

FormatNumber function

Returns a numeric value in a specified format

FormatPercent function

Returns a numeric value formatted using the "%" symbol

GetChar function

Returns a Char containing the character at a particular position in a string

InStr function

Finds the starting position of a substring within a string

InStrRev function

Returns the first occurrence of a string within another string by searching from the end of the string

Join function

Concatenates an array of values into a delimited string

LCase function

Converts a character or string to lowercase

Left function

Returns a string containing the leftmost n characters of a string

Len function

Counts the number of characters in a string

Like operator

Compares two strings

Mid function

Extracts a substring from a larger string

Mid statement

Replaces a substring in a larger string

Option Compare statement

Sets the default method for comparing string data

Replace function

Replaces one or more occurrences of a substring within a larger string

Right function

Returns a string containing the rightmost characters of another string

RTrim function

Removes any trailing spaces from a string

Str function

Converts a numeric value to a string

Spc function

Inserts spaces between expressions in output

Space function

Fills a string with a given number of spaces

Split function

Returns an array of strings from a single delimited string

StrComp function

Returns the result of comparing two strings

StrConv function

Returns the result of converting a string in a number of possible ways

StrDup function

Returns a string consisting of the first character of another string duplicated a given number of times

StrReverse function

Reverses the characters of the strings passed to it

Trim function

Removes leading and trailing spaces from a string

UCase function

Converts a string to uppercase

Val function

Converts a numeric string to a number

VBFixedString attribute

Defines a fixed-length string

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net