Forum Discussion
marin
13 years agoFrequent Contributor
Hello all,
found out how to access the first level object ("Record") via FindChild() method:
Variable record correctly holds the WinForm object "Record" (checked in Inspect window on debugging).
But now I need to grab the button which is a child of that object and to perform click. So I was under impression that I could just further use the FindChild() method for instantiated and initialized local variable _record, but this does not seem to work (_record.FindMethod() seems not to be possible, also intellisense is not working after typing a dot after _record).
Is it true, that FindChild() can not be used for local variable? What would be the correct approach to access that button which is child of "Record"?
Many thanks...
found out how to access the first level object ("Record") via FindChild() method:
var PropAray = new Array ("ClrClassName", "Index");
var ValArray = new Array ("Record", 5)
var _record = Aliases.TestApp.frmMain.MdiClient.frmOverview.FindChild(PropArray, ValArray);
Variable record correctly holds the WinForm object "Record" (checked in Inspect window on debugging).
But now I need to grab the button which is a child of that object and to perform click. So I was under impression that I could just further use the FindChild() method for instantiated and initialized local variable _record, but this does not seem to work (_record.FindMethod() seems not to be possible, also intellisense is not working after typing a dot after _record).
Is it true, that FindChild() can not be used for local variable? What would be the correct approach to access that button which is child of "Record"?
Many thanks...