I need to save values in SQLite that contain quotes. So I've been searching through the forums and somebody explained to do it like described below:
Code: Select all
function dbEscapeChars pString
replace quote with quote"e in pString
return pString
end dbEscapeChars
Original that I want to save in the database:
Code: Select all
--: put qbSQLiteConnect("MyDatabase.sqlite") into tConID
Code: Select all
put qbSQLiteConnect(""""MyDatabase.sqlite"""") into tConID
Can someone tell me what the best way is to escape quotes or other characters? And unescape them again?
Thanks,
Chris