Solved

IRC and List

Posted on 1998-10-04
1
216 Views
Last Modified: 2010-04-30
Hi
   I have a program that connects to IRC. My problem is that i want to fill a listbox with the names of the people in the room. When i use the /names <channel> command i get the response of just a list of names of the people in the room but I want to have the names go into a listbox. Like mIRC or most windows IRC programs. Thanks for any help.
0
Comment
Question by:Bart235
1 Comment
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 100 total points
ID: 1438113
If you have the names in a string str, use this:

Dim N1 as integer
Dim N2 as integer
Dim S as string

Do
 N2=N1+1
 N1=Instr(N2, str, " ")
 
 If N1>0 then
  S=Mid$(str, N2, N1-N2+1)
  List1.additem s
 end if
Loop While(N1>0)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now