OnMessage EventOnMessage Event*
*Contents  *Index  *Topic Contents
*Previous Topic: OnHistoryFull Event
*Next Topic: OnParticipantAliasChanged Event

OnMessage Event

Occurs when a user gets a message from a member or the chat room.

Syntax

object_OnMessage(SenderID, Message, MessageType)

ValueDescription
objectRequired. An object expression that evaluates to a Chat control.
SenderIDA long integer that contains the participant ID of the member who sent the message, or zero if the message comes from the chat room.
MessageA VARIANT value that contains the message. The incoming message can be a text message (BSTR) or data (an array of bytes, shorts, longs, floats, doubles, Booleans, errors, currencies, or dates).
MessageTypeCan be a combination of the following values.
0A text or data message that is broadcast to all members.
1A text or data message that is whispered to one or more members.
2A ComicChat thought, which is text only.
4An action, which is text only.

See Also

SendMessage, OnTextMessageSent, ThisParticipantID


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