开发者

How can use the ( ' ) symbol in DELPHI Edit components?

开发者 https://www.devze.com 2023-02-12 09:44 出处:网络
How开发者_高级运维 can allow the usage of the symbol (\') in DELPHI TEdit and other components ?If you want the end-user to be able to type it, then you have to do nothing (he/she can already). If you

How开发者_高级运维 can allow the usage of the symbol (') in DELPHI TEdit and other components ?


If you want the end-user to be able to type it, then you have to do nothing (he/she can already). If you want to use the character in strings in Delphi code, write '' instead, as in

const
  s = 'This isn''t good.';


Use a double ', e.g. 'What''s up'


Ok done some test and all you guys where correct. The symbol is allowed.

The problem is with devExpress tools. Some of them are not prepared to allow it.

Thanks for the replies

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号