开发者

OTA set the Delphi projects Keys options

How can I set the Delphi projects options FileDescription? when I try

ProjectOptions.Values['Keys'].SetOptionsValue('FileDescription', Title);

(title is a string)

I get开发者_运维知识库 invalid variant operation


Read the comments above IOTAProjectOptions declaration in ToolsApi unit. Try something like this:

var
  Options: TStrings;
begin
  Options := TStrings(Integer(ProjectOptions.Values['Keys']));
  if Assigned(Options) then
    Options.Values['FileDescription'] := Title;
end;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜