sdekosky1
13 years agoOccasional Contributor
Cannot Find Object using variable in WPFObject
I am attempting to find a WPFObject using the propery "Name". For the value of the property "Name" I want to parameterize WndCaption string using a variable so that I can find certain data in a WPF Grid. The following code will not find the contents of the variable BlockID. Other than using wild cards any other thoughts?
Thanks in Advance
Steve Dekosky
function
FindSpecBlockID()
{
var PropArray = new Array(1);
var ValuesArray = new Array(1);
var BlockID = "B98582";
PropArray[0] = "Name";
ValuesArray[0] = 'WPFObject("TextBlock", BlockID, 1)';
return GofindObject(PropArray,ValuesArray);
}