Board index » delphi » Re: Insert asc(0) characters in strings
John Herbster
![]() Delphi Developer |
Re: Insert asc(0) characters in strings2006-03-26 10:52:53 PM delphi33 "Mikael Lenfors" <XXXX@XXXXX.COM>wrote QuoteWe have data strings containing all 256 ascii characters QuoteThe problem seems to be all characters with ascii value 0. a lot of code. QuoteHow can I insert them? My insert looks like: s := StringReplace(MyData,'''','''''',[rfReplaceAll]); s := 'Insert Into RadarData (DataString) Values (' + s + ')'; ADOQuery.SQL.Add(s); I suspect that IDE's de{*word*81} may not properly show beyond the #0 characters, so you could also check the value of length(s); Good luck hunting, JohnH |