Forum Discussion
Try something like this.
propNames = new Array ("text","Enabled");
- Ivg9 years agoOccasional Contributor
It's not working, it's not like JScript/C# Script or something like that.
'Array' in C# is an abstract class
- Ivg9 years agoOccasional Contributor
'PropNames' and 'PropValues' should be of 'var' type.
When I'm looking at the TestComplete's 'var' type declaration, I can see the supported types 'var' can get in his c'tor.
There aren't any arrays there.
Is it impossible to use multiple names & values when writing connected app in C#?
- Colin_McCrae9 years agoCommunity Hero
I use multi-part searches in C# Script.
var typeARR = Array("VCLClass", "Caption");
var valueARR = Array("class_name", "caption_text");
var do_search = panel_object["FindAllChildren"](typeARR, valueARR, 3, true);
Works fine for me.
Not embedded within a C# application though. Just run as a scripted test within TestComplete. Not sure about it if it's embedded in the application ...
Related Content
- 12 years ago
Recent Discussions
- 14 hours ago