Does .net have the equivilent of Delphi's QuotedStr function. This replaces all quotes with two quote characters and then adds a quote to the start and the end, e.g.
Lets assume the varaible s holds the string:
Welcome to Steve's Store
then QuotedStr(s) would return:
'Welcome to Steve''s Store'
Like this:
"'" + str.Replace("'", "''") + "'"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With