Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置 Delphi 项目选项 FileDescription?当我尝试
ProjectOptions.Values['Keys'].SetOptionsValue('FileDescription', Title);
(标题是一个字符串) 我得到无效的变体操作
IOTAProjectOptions阅读单元中声明的上述评论ToolsApi。尝试这样的事情:
IOTAProjectOptions
ToolsApi
var Options: TStrings; begin Options := TStrings(Integer(ProjectOptions.Values['Keys'])); if Assigned(Options) then Options.Values['FileDescription'] := Title; end;