 |
doofusboy Level: Scholar
 Registered: 13-05-2003 Posts: 30
|
Re: Please help me, i'm a novice
It would seem that MSComctlLib.ListItem is not a valid datatype in VB (like string, long, integer, etc).
|
|
03-06-2003 at 03:39 PM |
|
|
~Bean~ Level: VB Guru

 Registered: 07-04-2003 Posts: 488
|
Re: Please help me, i'm a novice
hhhmmmm... I have run into some similar errors/problems when using MDAC (data access componenets, e.g., ADO), but never with any of the Windows Common Controls...
quote: doofusboy said
It would seem that MSComctlLib.ListItem is not a valid datatype in VB (like string, long, integer, etc).
Actually, once you add the windows common controls to your project the "MSComctlLib.ListItem" IS a valid type (in fact, that piece of code is added automatically by VB). You can always test this (valid data types) by temporarily adding something like this to your declarations...
| Public lstItem As MSComctlLib.ListItem |
(as soon as you type the "As" VB should list the Types/Objects which you can choose from; you can then scroll down to "MSComctLib")
Did you happen to change version of MSCommon Controls in the middle of your project? Are you writing this program on more than 1 machine - say at home and at school (diff VB installations?)?? I think this was my prob when I ran into this with MDAC. Some of my projects I was NEVER able to fix...had to redo a bunch of them ... so I would be interested in anything else you find out as well...
btw...
quote: As i am only a novice, i hate all sorts of errors.
You don't have to be a novice to hate errors!
____________________________
Eggheads unite! You have nothing to lose but your yolks.
|
|
03-06-2003 at 06:23 PM |
|
|
|
|
 |
 |