balinta01
13 years agoOccasional Contributor
Calling Functions From .NET Assemblies - Array
Hi all!
I have a C# method looking like this:
public string[] Foo(int a, int b, int c)
I would like to call it in TestComplete like this:
var t = testCompleteHelper.Foo(0, 0, 0);
Log.Message("foo: "+t[0]);
For some reason TestComplete says the value is undefied.
string, int as return values work perfectly fine for me, but somehow string array doesnt seem to do in TestComplete. I've tried to use it via OleValue, but it did not work either: t[0].OleValue or t.OleValue[0]
I would really appreciate any help.
Best Regards,
Attila
I have a C# method looking like this:
public string[] Foo(int a, int b, int c)
I would like to call it in TestComplete like this:
var t = testCompleteHelper.Foo(0, 0, 0);
Log.Message("foo: "+t[0]);
For some reason TestComplete says the value is undefied.
string, int as return values work perfectly fine for me, but somehow string array doesnt seem to do in TestComplete. I've tried to use it via OleValue, but it did not work either: t[0].OleValue or t.OleValue[0]
I would really appreciate any help.
Best Regards,
Attila