Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Methods/SendData: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:45:57 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/methods/SendData.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= <a class="clsStd" href="/techref/objectmodel/objects/channel/index.htm">Channel</a>.SendData Method = | __NOTOC__= <a class="clsStd" href="/techref/objectmodel/objects/channel/index.htm">Channel</a>.SendData Method = |
Revision as of 22:45, 12 August 2022
<a class="clsStd" href="/techref/objectmodel/objects/channel/index.htm">Channel</a>.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.