Results 1 to 4 of 4

Thread: Multiple Sending Problems

Hybrid View

  1. #1
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Multiple Sending Problems

    Try this:

    Code:
    Case "MODE"     'Someone set mode on someone else
    
        Dim p As Integer
        
        'If there is at least one selected user, then...
        If lstUsers.SelCount > 0 Then
            
            'Loop through all users in list
            For p = 0 To lstUsers.ListCount - 1
                
                If lstUsers.Selected(p) Then
                    displaychat "** " + From$ + " sets mode " + processParam(processRest(params$)) + " on " + Me.lstUsers.Text + " **" 'display the mode change
                End If
            
            Next p
        
        Else
            'No selected users
            displaychat "** " + From$ + " sets mode " + processParam(processRest(params$)) + " on " + processParam(params$) + " **" 'display the mode change
        End If
    Also, you should get in the habbit of indenting and spacing out your code. See how much easier that is to read?

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Posts
    207

    Re: Multiple Sending Problems

    Alright I will. And thanks a lot DigiRev, it worked.

  3. #3
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Multiple Sending Problems

    You're welcome.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width