How to include single quotes in Inno Setup while passing to function?

◇◆丶佛笑我妖孽 提交于 2019-12-05 22:51:31

Try this one:

TempReadValue(StrArray, 'log4j.appender.testing.File=INSERT INTO emp select Eid,'+Chr(39)+'%K'+Chr(39)+','+Chr(39)+'%L'+Chr(39)+'from DistributionTable  whereEname = '+Chr(39)+'Nails:chino'+Chr(39), LogFileName);

This will work.

You have to double the single quote:

TempReadValue(
  StrArray,
  'log4j.appender.testing.File=INSERT INTO emp select Eid,''%K'',''%L''from DistributionTable  whereEname = ''Nails:chino''',      
  LogFileName);

See https://www.freepascal.org/docs-html/ref/refse8.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!