What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Block Command - Messenger API

Block Command - Messenger API
Author: Message:
michael_m91
Full Member
***


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. RE: Block Command - Messenger API
code:
Public WithEvents MsgrUIA As MessengerAPI.Messenger
Public MsgrContact As MessengerAPI.IMessengerContact

Private Sub btnBlocked_Click()
    On Error Resume Next
    Dim strSigninName As String
    Dim strServiceID As String
    'Get selected contact
    strSigninName = ListContact.SelectedItem.SubItems(2)
    strServiceID = ListContact.SelectedItem.SubItems(5)
    Set MsgrContact = Nothing
    Set MsgrContact = MsgrUIA.GetContact(strSigninName, strServiceID)
    ErrorTrap ("GetContact")    'Error handling routine
    If MsgrContact.Blocked = True Then
        MsgrContact.Blocked = False
        MsgBox ("Contact: " & CStr(MsgrContact.SigninName) & " is now Unblocked")
    Else
        MsgrContact.Blocked = True
        MsgBox ("Contact: " & CStr(MsgrContact.SigninName) & " is now Blocked")
    End If
    ErrorTrap ("Contact.Blocked")   'Error handling routine
    populateListView    'Refresh contact list
End Sub


The following are what my code complains about

[Image: Email.JPG]
09-16-2004 12:35 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Block Command - Messenger API - by michael_m91 on 09-15-2004 at 04:58 AM
RE: Block Command - Messenger API - by RaceProUK on 09-15-2004 at 11:26 AM
RE: Block Command - Messenger API - by michael_m91 on 09-15-2004 at 12:30 PM
RE: Block Command - Messenger API - by Millenium_edition on 09-15-2004 at 12:33 PM
RE: Block Command - Messenger API - by michael_m91 on 09-15-2004 at 12:42 PM
RE: Block Command - Messenger API - by Millenium_edition on 09-15-2004 at 12:53 PM
RE: RE: Block Command - Messenger API - by michael_m91 on 09-15-2004 at 01:10 PM
RE: Block Command - Messenger API - by CookieRevised on 09-15-2004 at 01:20 PM
RE: Block Command - Messenger API - by Millenium_edition on 09-15-2004 at 01:21 PM
RE: Block Command - Messenger API - by michael_m91 on 09-16-2004 at 12:35 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On