Re: replacing quotes

Shahab-o-ddin Mokhtari <[email protected]> Thu, 7 Aug 2003 19:01:39 -0700 (PDT)
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Salam (Hi)
what would be happen if you don't use QoutedStr function ?! try your application without this and see the result !
 
Bye
Shahab :)
-------------------------------

Brigitte Spatz <[email protected]> wrote:
For a Javascript function that's called from a website my application
produces I need to replace any apostrophes by \' but I can't seem to get
this to work:
  if Pos('''', aString) > 0 then
    Result := QuotedStr(StringReplace(aString, '''', '\' + #39,
[rfReplaceAll]))
returns \'' - where does the second ' come from??? I've also tried with
  if Pos('''', aString) > 0 then
    Result := QuotedStr(StringReplace(aString, '''', '\''',
[rfReplaceAll]))
with the same result :-(

Any ideas?

TIA.

Brigitte



[Non-text portions of this message have been removed]


Yahoo! Groups SponsorADVERTISEMENT

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



Sincerely Yours
Shahab-o-ddin Mokhtari
 
[http://Ceramic81.150m.com]
[[email protected]]
[http://ShahabM.8m.com]


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/