How do you escape a reserved word in Delphi?

戏子无情 提交于 2019-12-23 08:49:38

问题


I need to Escape a reserved word to use it as an identifier in Delphi. I thought that was accomplished by using the ampersand "&", but that doesn't seem to be working right. Any other suggestions?


回答1:


I found the doc page (search for Extended Syntax) on it, and it should be ampersand.

Figured out the problem. The ampersand works for compiling and error insight, but not code completion. Good to know. I had to add an _ suffix to get code completion to work, then change it back afterwords. I should check QC for a bug report.



来源:https://stackoverflow.com/questions/1512109/how-do-you-escape-a-reserved-word-in-delphi

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