C cqbaobao Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-26 #2 并排两个单引号 如 '''' 表示只有一个 单引号 的字符串
H hukaijt Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-26 #3 var s:string; begin s:=''''+'hukaijt'+'''' end; s 就是'hukaijt'
菜 菜中菜 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-22 #5 showmessage('I''m cai zhong cai');
Y yfdciom Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-28 #6 在sql的模糊查询中经常用到: sql.add('wher name like %'+''''+Edit1.text+''''+'%'); 这里''''就表示单引号字符串
N naughtboy Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-28 #7 可以用quotedstr函数,用法是quotedstr(edit1.text)
X xxhadsg Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-28 #9 给你一个例子: s:='This is Tom''s '+edit1.text+' .The string is '''+edit2.text+''''; 如果edit1.text='Apple',edit2.text='abc' s是 This is Tom's Apple .The string is 'abc'
给你一个例子: s:='This is Tom''s '+edit1.text+' .The string is '''+edit2.text+''''; 如果edit1.text='Apple',edit2.text='abc' s是 This is Tom's Apple .The string is 'abc'