Ho provato a fare un replace su una descrizione con una funzione:
<%
FUNCTION fixQuotes (theString)
if len (theString) > 0 Then
fixQuotes = REPLACE (theString, "Aria condizionata","AC")
else theString = rs(1)
end if
END FUNCTION
funziona, ma se volessi avere altre sostituzioni posso avere una serie di replace concatenati?
tipo:
<%
FUNCTION fixQuotes (theString)
if len (theString) > 0 Then
fixQuotes = REPLACE (theString, "Bagno","wc")
fixQuotes = REPLACE (theString, "Bagni","wc")
fixQuotes = REPLACE (theString, "Aria condizionata","AC")
else theString = rs(1)
end if
END FUNCTION
così sembra non funzionare, forse devo concatenare gli eventi?come?
ciao e grazie

Rispondi quotando