Home
Search
Tell a Friend
ABS() Array() ASC() CHR() CInt() CStr() Date() DateAdd() DateDiff() DatePart() DateSerial() DateValue() Day() Fix() FormatCurrency() FormatDateTime() FormatNumber() FormatPercent() Hour() InStr() InStrRev() Int() IsArray() IsDate() IsEmpty() IsNull() IsNumeric() IsObject() Join() LBound() LCase() Left() Len() LTrim() Mid() Minute() Month() MonthName() Now() Replace() RGB() Right() Rnd() Round() RTrim() Second() Space() Split() Sqr() strComp() String() StrReverse() Time() TimeSerial() TimeValue() TypeName() UBound() UCase() VarType() WeekDay() WeekDayName() Year()
|
Replace() Purpose:Returns a string in which a specified sub-string has been replaced with another substring a specified number of times. DataType:String Syntax:Replace(strToBeSearched, strSearchFor, strReplaceWith [, start [, count [, compare]]]) Arguments: "strToBeSearched" is a string expression containing a sub-string to be replaced;
"strSearchFor" is the string expression to search for within strToBeSearched;
"strReplaceWith" is the string expression to replace sub-string strSearchFor;
"start" (optio Sample: response.write Replace("This is David.", "David", "John") Result: This is John. Date Added: 1/9/2001
|