我想把字符串中所有的'换成两个'
比如abc'c换为abc''c,或者abc''c换为abc''''c
请指点
比如abc'c换为abc''c,或者abc''c换为abc''''c
请指点
解决方案 »
- 提示'FROM子句语法错误'~达人们帮忙看看~~
- 未说明标识问题~我是新手请多多帮助,谢谢
- 在delphi中如何格式化U盘成fat16格式
- 大家帮我招一个财务,(能用英文口语简单交流)急!!!!
- 高手指教:推荐一下3D引擎、建模工具,一定要有例子!
- 怎样通过DBNavigator实现对DBGrid 中的记录末添加记录?
- delphi 通过TFileStream 文件流方式 将TStringGrid数据导出到excel多个sheet页中
- 水晶报表任何使用(资料也可),在那里可以得到?
- 關于delphi中窗口顯示位置的問題﹗我怎樣使窗口顯示在一個panel中﹐象MDI那休養﹖﹖
- 如何用blockwrite在文件的指定位置写入新的数据阿?
- quickreport中,为何我放在groupfooter中的统计结果显示不出来?
- 有谁知道TEITreeView这个控件,我想取得它在别的进程中Node的文本值,如何才能得到.先谢过
function QuotedStr(const S: string): string;DescriptionUse QuotedStr to convert the string S to a quoted string. A single quote character (') is inserted at the beginning and end of S, and each single quote character in the string is repeated.
StrUtils;procedure TForm1.Button1Click(Sender: TObject);
const
s = 'abc''c';
begin
ShowMessage(AnsiReplaceText(s, '''', ''''''));
ShowMessage(StringReplace(s, '''', '''''', [rfReplaceAll]));
end;