Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Methods/SendData
Channel.SendData Method
Sends data to remote application.
VBScript Syntax
set myChannel = external.Channel sub cmdSendButton_OnClick ' Send the contents of the variable myDataString to the remote application. On Error Goto SomeButtonOnClickHandler myChannel.SendData(myDataString) Exit Sub :SomeButtonOnClickHandler Document.Write("Error Detail: " & err.description) End Sub
JavaScript Syntax
myChannel = window.external.Channel; function cmdSendButton_OnClick() { // Send the contents of the variable myDataString to the remote application. try { myChannel.SendData(myDataString); } catch(ex) { document.write("SendData failed. Error Description: " + ex.description); } }
Parameters
- vDataValue
- A variant containing the data to send.
Return Values
No return value.
Remarks
The data object can be most any variant type, except for array, object type, or reference.
An exception is thrown if the application is single-user, if the data object is not valid, or if the data object is a type that cannot be sent, such as a reference.