Inc function Inno Setup

混江龙づ霸主 提交于 2019-12-23 02:59:10

问题


This may be really simple but when I try to compile a program containing

Inc(Count);

In Inno Setup I keep getting

Unknown identifier 'Inc'

I believe this is how you increment integers in Pascal, and am confused on how to proceed here.

I am using Inno Setup 5.5.9(a).


回答1:


Indeed, the Inc does not work in Ansi version of Inno Setup. It works in Unicode version though.

You should not use Ansi version anyway. It's 2016, no application should use legacy encoding anymore. Switch to the Unicode version.


If you have a very good reason to stick with Ansi version (like lots of Pascal code that works with Ansi strings, which is error prone when converting to Unicode version), you can of course use:

Count := Count + 1;


来源:https://stackoverflow.com/questions/37703751/inc-function-inno-setup

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