ASP

ASP Variables Strings Form Arrays 2D Array Loop IF Cookies Dates Dictionaries SQL Numbers Files JSON Database Regular Expression ExecuteGlobal Recordset ServerVariables Bugs ADO AJAX XML Chilkat
O O

Weather Controls

Time Of Day
Rain
Wind Speed
Wind Direction
Clouds

ASP : Strings

2017-01-01

Length

len("Rob is cool") // 11

Cut a string from

left("Rob is cool", 3) //  "Rob"
right("Rob is cool", 3) //  "ool"
mid("Rob is cool", 5,1) //  "i"

// remove comma at end 
str = left(str, len(str)-1)

replace a part of the string

replace("Rob is cool","cool","amazing") // "Rob is amazing."

Check if something exists in a string

inStr("The gold mine is mine","mine") //10
inStr("The gold mine is mine","yours") //0 (not found)

//Start counting from the right, but still returns a value counted from the left.
instrRev("The gold mine is mine","mine") //18
instrRev("The gold mine is mine","yours") //0 (not found)