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) No edit summary |
||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23:45:57 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/methods/SendData.htm --> | <!-- 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__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Index|Channel]].SendData Method = | ||
Sends data to remote application. | Sends data to remote application. | ||
VBScript Syntax | === VBScript Syntax === | ||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 20: | Line 20: | ||
:SomeButtonOnClickHandler | :SomeButtonOnClickHandler | ||
Document.Write("Error Detail: " & err.description) | Document.Write("Error Detail: " & err.description) | ||
End Sub | End Sub</pre> | ||
</div> | </div> | ||
JavaScript Syntax | === JavaScript Syntax === | ||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 39: | Line 37: | ||
document.write("SendData failed. Error Description: " + ex.description); | document.write("SendData failed. Error Description: " + ex.description); | ||
} | } | ||
} | }</pre> | ||
</div> | </div> | ||
Parameters | === Parameters === | ||
; vDataValue | ; vDataValue | ||
: A variant containing the data to send. | : A variant containing the data to send. | ||
Return Values | === Return Values === | ||
No return value. | No return value. | ||
Remarks | === Remarks === | ||
The data object can be most any variant type, except for array, object type, or reference. | 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. | 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. |
Latest revision as of 01:28, 13 August 2022
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.