PDA

View Full Version : in code runtime find/replace on called text


haskins
04-01-2003, 09:08 PM
how do you set a page to change a called word to another word when viewed.

whammy
04-02-2003, 12:13 AM
<%
Function ReplaceText(ByVal str)
If IsNull(str) Then Exit Function
ReplaceText = Replace(str,"bananas","strawberries")
End Function
%>

<% = ReplaceText("I love bananas - bananas are yummy!") %>