Quantcast
Channel: Flexera Community Forums
Viewing all articles
Browse latest Browse all 4553

How to pass string array by ref to .Net method in InstallScript

$
0
0
Hi,

I want to pass a string array by ref to dot net method in InstallScript project.

C# code:
Code:

        public string[] GetSubscriptions(string securityToken, out string[] subscriptionIDs)
InstallScript code:
Code:

prototype LIST GetSubscriptions(string, BYREF LIST);
function LIST GetSubscriptions(inSecurityToken, outSubscriptionIDs)
  object  XMPieInstallerHelpersObject;
  LIST        retVal;
begin           
...
  retVal = XMPieInstallerHelpersObject.GetSubscriptions(inSecurityToken, outSubscriptionIDs);
......


When I call the method from InstallScript, I get the following error message:
"The parameter is incorrect"

How can I pass string array by ref?

Thanks,
Ayelet.

Viewing all articles
Browse latest Browse all 4553

Trending Articles