
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
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> </DIV>
><DIV><FONT face=3DArial size=3D2>dim mNode as Node</FONT></DIV>
><DIV><FONT face=3DArial size=3D2></FONT> </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> </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> </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> </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)