Contents Index Topic Contents | ||
Previous Topic: OnMessage Event Next Topic: OnProtocolMessage Event |
OnPrivateMessage Event
Fires when a user sends a private message to the control user.
Syntax
object_OnPrivateMessage(SenderNickname, PrivateMessageType, Message, DataMessageTag)
Parameters
object Required. An object expression that evaluates to an MsChatPr control. SenderNickname Required. A string expression containing the Nickname of the sender. PrivateMessageType Required. A long integer. Message Required. A variant. When a data message is received and the pmtDataRaw flag is not set, the Message parameter can be a number, a string, an array of numbers, an array of strings, or an array of variants that are strings or numbers. This is exactly like the Message parameter used in the SendPrivateMessage method. However, when the pmtDataRaw flag is set, the Message parameter is an array of these three variants:
Message[0] The postprocessed string that represents the array of bytes received. Message[1] An array of bytes. Message[2] An array of variants that are bytes. DataMessageTag Required. A variant. This parameter is empty when the Message parameter is a string, and is a string when Message is data.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.