Jerryth
8 years agoOccasional Contributor
OleVariant as project variable
I know Project Variables have been covered many many times but I did not find an answer to this:
This code works fine, but I don't want to have to declare winMake in every procedure that accesses the application.
(DelphiScript)
procedure StartBtn_OnClick(Sender);
var winMakeApp : OleVariant;
begin
TestedApps.WinMake.Run(1, true); (WinMake.exe is the name of the app I am testing)
winMakeApp := Aliases.WinMake;
...
do stuff with winMakeApp
But when I try to create a ProjectSuite variable, OleVariant is not a supported type.
How do I declare this?
Thanks
Hi,
Have you tried with ProjectSuite variable type as Object.
https://support.smartbear.com/testcomplete/docs/testing-with/variables/data-types/object.html