Treeview add node type missmatch error 
Author Message
 Treeview add node type missmatch error

Here's the code in form_load

dim mNode as Node

Set mNode = Treeview1.Nodes.Add()
mNode.Text = "My Text"
mNode.Expanded = True

The Set mNode line causes the Type Mismatch 13 error on this form but works fine in another??

Project is VB 6 SP4 and the Treeview is version. 6(SP4). It is running on W2K SP2.

Thanks



Fri, 19 Nov 2004 00:42:21 GMT  
 Treeview add node type missmatch error

released on Sun, 2 Jun 2002 09:42:21 -0700 bearing the
following fruit:

Quote:
>This is a multi-part message in MIME format.

>------=_NextPart_000_0020_01C20A19.CACC9320
>Content-Type: text/plain;
>    charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable

>Here's the code in form_load

>dim mNode as Node

>Set mNode =3D Treeview1.Nodes.Add()
>mNode.Text =3D "My Text"
>mNode.Expanded =3D True

>The Set mNode line causes the Type Mismatch 13 error on this form but =
>works fine in another??

>Project is VB 6 SP4 and the Treeview is version. 6(SP4). It is running =
>on W2K SP2.

It should work but sometimes you do get problems try

Dim mNode As MSComctlLib.Node

J

- Show quoted text -

Quote:
>Thanks

>------=_NextPart_000_0020_01C20A19.CACC9320
>Content-Type: text/html;
>    charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable

><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=3DContent-Type content=3D"text/html; =
>charset=3Diso-8859-1">
><META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY bgColor=3D#ffffff>
><DIV><FONT face=3DArial size=3D2>Here's the code in =
>form_load</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>dim mNode as Node</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>Set mNode =3D =
>Treeview1.Nodes.Add()</FONT></DIV>
><DIV><FONT face=3DArial size=3D2>mNode.Text =3D "My Text"</FONT></DIV>
><DIV><FONT face=3DArial size=3D2>mNode.Expanded =3D True</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>The Set mNode line causes the Type =
>Mismatch 13=20
>error on this form but works fine in another??</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>Project is VB 6 SP4 and the Treeview is =
>version.=20
>6(SP4). It is running on W2K SP2.</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV></BODY></HTML>

>------=_NextPart_000_0020_01C20A19.CACC9320--

--

A forger is a man who made a name for himself.  (Henny Youngman)  



Sun, 21 Nov 2004 17:58:29 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Treeview Nodes Gives Type Mismatch Error

2. treeview node count not incrementing when adding new nodes

3. Error adding a node to a treeview from a module

4. Error 35603 (Invalid key) when adding Node to TreeView control

5. Type missmatch

6. Type Missmatch [dim b() as byte]

7. Type Missmatch [dim b() as byte]

8. Adding nodes to Treeview

9. Adding Nodes to TreeView and XML files

10. Adding a node to a treeview from a different thread

11. Adding TreeView nodes in separate thread

12. adding a node to treeview from another thread

 

 
Powered by phpBB® Forum Software