Nickname PropertyNickname Property*
*Contents  *Index  *Topic Contents
*Previous Topic: NewChatItems Property
*Next Topic: OpeningChannels Property

Nickname Property

Returns the control user's Nickname for the current connection, or an empty string if there is no live connection.

Syntax

value=object.Nickname

Parameters

objectRequired. An object expression that evaluates to an MsChatPr control.
valueRequired. A string expression to contain the control user's Nickname for the current connection, or an empty string if there is no live connection.

Remarks

Access is read-only.

Example

Dim strMyNickname As String
strMyNickname=MsChatPr1.Nickname
'or
Sub MsChatPr1_OnMemberKicked(Channel* Channel, 
        BSTR KickedNickname, 
        BSTR KickerNickname, 
        BSTR Reason)
    If (KickedNickname = MsChatPr1.Nickname) Then
        MsgBox "You were kicked by " + KickerNickname + " because: " + Reason
    End If
End Sub

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.