Posts: 2,536
Location: Western Maryland
|
Yes, or you could perform a replace and use ' for single quotes -- this is what I do.
So you would run
replace( myVar, "'", "'" ) 'Need to add semicolon after 39
This has the effect of storing the ' to the database instead of the single quote -- but if you only plan to display the information in a browser and if you are not depending on a particular value for String length or otherwise parsing it, it is very convenient.
But it is true that replace() is the more sensible solution and your approach should work fine.
EDIT -- After seeing Webcyte's post, I realized I should have left off my semicolon to make it visible..... Tks, webcyte.
__________________
—Kyrnt
Last edited by Kyrnt; 09-23-2004 at 12:36 AM..
|