Give Us a Call: +1-877-99-BOPUP or Request for a Chat en Vivo

IServerClientVBA::SendMultipleMessage method

Sends an instant message to several users and/or messaging groups at the same time.

Public Sub SendMultipleMessage(     ByRef MessagePtr As Long,     ByRef RecipientArrayPtr As Long,     ByRef RecipientsCount As Integer,     ByRef ResultCode As Long )


[in] A pointer to a variable of MultipleMessageStruct type that contains information on the instant message. To retrieve a pointer to a variable use VarPtr() function.
[in] Pointer to an array of RecipientStruct types that contains recipients of the message. To retrieve a pointer to an array use VarPtr() function for it's first element.
[in] Variable of Integer type that specifies the number of elements in the array pointed by the RecipientArrayPtr variable. In order words it's value equals the number of message recipients.
[out] Variable of Long type that gets an extended code if error result is returned. For available codes see Available Extended Codes topic.

Return Value

The function was successful. Check ResultCode variable to get extended information.
One or more arguments are incorrect.
Some error occurred in the function. Check ResultCode variable to get extended information on the error.


The Key member of the pointed MultipleMessageStruct contains a unique key if the call of the method is succeeded. That value can be used to identify the outgoing instant messaging in the application.