开发者

OTA set the Delphi projects Keys options

开发者 https://www.devze.com 2023-02-14 16:34 出处:网络
How can I set the Delphiprojects options FileDescription? when I try ProjectOptions.Values[\'Keys\'].SetOptionsValue(\'FileDescription\', Title);

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

精彩评论

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