Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to pass TreeView Node...but type mismatch?

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
I've got a function that takes a node as a parmater by refernce. When i try and call it from the calling function though, I get a type mismatch error (trying to pass a TreeView.Nodes(index))

Any thoughts on why this might be happening?

Thanks,

D'Arcy

 
I would use the object browser (F2) to double-check your types.

Chip H.
 
D'Arcy,

Don't know if you had any luck, but I found that the Nodes parameter does not work with Windows Common Controls v6, only with v5. If you previously used the nodes paramete, you might want to see what the recent version of TreeView is that you are using.

The way around it is to declare the variable as an Object, not a Node.

dim moNode as Object

Function ...
Set moNode.Parent = tvw.DropHighlight
end Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top