Collapsing a TreeView (using its property) from SilkTest
I am using SilkTest version 7.6. I have a Sheridan control - Treeview in a VB application (AUT). On trying to Collpase all the nodes of the TreeView at a time, using the following code:
for i = 1 to n
this._SetItemProp ("Nodes",i,"","Expanded", FALSE)
I am getting the following error:
*** Error: Call to object failed.
Occurred in _SetItemProp
Also, the nodes are not getting collapsed. But I am able to expand all the nodes at a time,using the same property.
I have the following property declaration in the VBClass.inc file:
obj VOID _SetItemProp (STRING sCollProp, INT nIndex, STRING sKey, STRING sPropName, ANYTYPE Value)
Please advice me.
Re: Collapsing a TreeView (using its property) from SilkTest
There is Collapse () method also...Try with that...