Solved

IRC and List

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 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