![]() |
|
|
Replace VBScript functionThe Replace function can be used in ASP to replace characters within a string with other characters. Syntax:Replace(StringToSearch, StringToFind, ReplaceWithThisString) StringtoSearch is the string you want to check for any occurence of the StringToFind. If there are any occurences of StringToFind then the function will replace them with ReplaceWithThisString. Every occurence will be replaced starting from the first character of StringToSearch. Example: <%
String1="My_Name_is_Michael" Response.write Replace(String1,"_"," ") %> Result displayed on the screen would be: Other useful VBScript functions for Parsing String
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|