These functions can be used to alter or modify
a given string.

String Function Reference Chart

Function | description | example
Len(String) | This counts the number of characters in your string, returns an integer number ( 1, 2, 3 ) | TheNumber = Len("Naut") TheNumber now equals: 4
RTrim(String) | This takes off trailing spaces in a string. | TrimIt = RTrim("hello ") TrimIt now equals: "hello"
LTrim(String) | This takes off the leading spaces in a string. | TrimIt = LTrim(" hello") TrimIt now equals: "hello"
InStr(Start character, string to search, what to search) | This is more of the advanced functions, but it returns a number where the what to search string has been found in the string to search. | Here = "Nautica" FindIt = Instr(1,Here,"u") FindIt now equals: 3
LCase(String) | This turns your string to all lowercase | Here = "NaUtIcA" ChangeIt = LCase(Here) Here now equals "nautica"
UCase(String) | This turns your string to all upper case | Here = "nautica" ChangeIt = UCase(Here) ChangeIt now equals: "NAUTICA"
Left(String, Length) | Returns a specified number of characters from the left side of a string. | Here = "Nautica" ChangeIt = Left(Here, 1) ChangeIt now equals: "a"
Right(String, Length) | Returns a specified number of characters from the right side of a string. | Here = "Nautica" ChangeIt = Right(Here, 1) ChangeIt now equals "N"
Mid(String, Length) | Returns specified number of characters from a string. | Here = "Nautica" ChangeIt = Mid(Here, 2) ChangeIt now equals: "autica"
MonthName(Month) | Returns the month, when you enter its number. | TheMonth = MonthName(8) TheMonth now equals: "August"
Replace(String to search in, what to find, replace with) | This takes a string, finds something you want to to, and replaces what it finds with what you specify. | TheString = "Nautica" Re = Replace(Nautica,"a","#") Re now equals: "N#utic#"
StrReverse(String) | Reverse a string (make it backwards.. duh :) ) | Here = "Nautica" Rev = StrReverse(Here) Rev now equals: "acituaN"
Trim(String) | Takes the leading and trailing spaces off -- instead of doing LTrim(RTrim(string)) | Here = " Nautica " TrimIt = Trim(Here) TrimIt now equals: "Nautica"
LenB(String) | Returns the number of bytes used to store your string (dont ask me who would use this) | Here = "Erik" TheBytes = LenB(Here) TheBytes now equals: 8

1999-2000 © Erik Helgesen All Rights Reserved.
Only permitted Images and Material may be downloaded from this web site.
PhotoShop, Flash, and Microsoft Visual Basic are registered trademarks!