
25/03/2004, 09:26
|
 | | | Fecha de Ingreso: mayo-2003 Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 22 años, 1 mes Puntos: 5 | |
bueno, lo que yo hago es esto:
Function Apostrofe(Text,SW)
if Text <> "" or Text <> NULL then
if SW = 1 then
Apostrofe = replace(Text, "'", "apostrofe")
else
Apostrofe = replace(Text, "apostrofe", "'")
end if
else
Apostrofe = ""
end if
end function
nota = "hola's"
INSERT INTO test(notas) values('" & Apostrofe(nota,1) & "')"
esto es tanto para update como insert.
para seleccionar entonces
sql = "select * from test"
y cuando lo voy a imprimir o guardar en una variable lo formateo nuevamente, pero a la inversa
nota = Apostrofe(rs("notas"),0)
response.write(nota)
intentalo, te debe funcionar... es lo que yo uso.... hay otra cosa pero no la he probado.... te comento si me funciona lo que investiue
saludos
__________________ Saruman One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them. |