G
Guest
From time to time I run into problems while building dynamic "imbedded SQL"
strings, because some of the text I'm grabbing from a table or form has an
apostrophe (AKA single quote) in it. The SQL gets all confused by the extra
quotation mark without a closing partner. Anybody know a workaround for this
other than breaking the user's fingers if he uses apostrophes? It's be great
to have some kind of a function that one could wrap around every text string
to morph apostrophes into some other character or just delete them
altogether. I'll probably try to write one when I get a spare moment, but if
someone has already done so, hey, plagiarism's a virtue when you're writing
code!
strings, because some of the text I'm grabbing from a table or form has an
apostrophe (AKA single quote) in it. The SQL gets all confused by the extra
quotation mark without a closing partner. Anybody know a workaround for this
other than breaking the user's fingers if he uses apostrophes? It's be great
to have some kind of a function that one could wrap around every text string
to morph apostrophes into some other character or just delete them
altogether. I'll probably try to write one when I get a spare moment, but if
someone has already done so, hey, plagiarism's a virtue when you're writing
code!