Manipulating Strings
String-handling functions split, join, transform, and otherwise modify String data. Table 6-4 lists the String functions that Visual Basic .NET provides.
Table 6-4. Visual Basic .NET String Handling Functions
Result Type |
Function |
Description |
---|---|---|
Integer |
StrComp |
Compares two strings and returns the result. |
Long |
Len |
Returns the number of characters in a string or the number of bytes required to store a variable. |
Long |
InStr |
Returns the first position of one string within another, searching from left to right. |
Long |
InStrRev |
Returns the first position of one string within another, searching from right to left. |
Char |
GetChar |
Returns the character from the specified index in a given string. |
String ... |
Get Faster Smarter Beginning Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.