• Welcome to Valhalla Legends Archive.
 

RoomList Error!?

Started by bD_EwiN, November 25, 2003, 07:58 PM

Previous topic - Next topic

bD_EwiN

I decided to try out CupHead's CleanSlateBot.ocx module, and when I compiled it when I was finished, I recieved an Error with the ListView that displays users.  For instance:

In the code
RoomList.ListItems.Clear

The OCX file doesn't recognize Clear as an option...  Same goes for any extention off ListItems.  I think that my OCX file might be corrupt in some way.. any suggestions?

Hazard

Can you be more specific with your problem? I'm not understanding the question clearly.

"Courage is being scared to death - but saddling up anyway." --John Wayne

MyndFyre

It seems that he is having an issue with a ListView, in that when he tries to run the Clear() method of the ListItems property, he is getting a compile-time error.

Let me first say that this has absolutely nothing to do with CSB - it's your code.

Sorry I can't help you further - I don't code VB 6.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

MyndFyre

Of course, I suppose that also means it should be on the VB forum.  :-P
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Crypticflare

If you could post the error your recieving it would be a bit more helpful, I'm not quite sure whats going on unless, you accidently added a listBox instead of a listview.

Kp

... unless someone shows a clear tie to a bot development question.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

bD_EwiN

Yeah, I'll post the error later today.

ObsidianWolf

Things to check.

Do you have a ListView Control?  Some people think a ListView control is the same as Listbox.

If you have a listview control then i suggest adding something to your statement.
This is what you have

RoomList.ListItems.Clear


This is what I would suggest trying, if the ListView control is on a form named frmMain

frmMain.RoomList.ListItems.Clear


Something also you should check for, make sure you dont have a control array on accident.  This can happen if you copy and paste your control and choose yes to the question "Would you like to create a control array".  Easy way to check this is to check the Index Property of your control.  if its blank then your good.  You can also check the name of listitems.  If it looks like

ListItems(0)

Then you need to fix the Index Property.

I hope this helps.

Good Luck.


bD_EwiN

Ok, what happens when I type:
RoomList.ListItems.
And I wait for the pulldown box to pop up saying the different choices I have, the only choice is
MsComctlLib

that might give a better idea to you guys who are trying to figure out wtf I'm talking about.  ;)

bD_EwiN

#9
Whoops, problems solved.  It turns out to be that I was right in my 1st post.  My mscomtl.ocx file was corrupt  ;)

Thanks for your time everyone  ::)

Arthas

lol, listviews... so... unversatile. I wrote my own control :)