Solved

IRC and List

Posted on 1998-10-04
1
214 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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

10 Experts available now in Live!

Get 1:1 Help Now