Solved

IRC and List

Posted on 1998-10-04
1
219 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

756 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