Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Properties/Data: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:45:59 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/properties/Data.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Index|Channel]].Data Property = | ||
This property returns the data that has been received from the remote user's application instance. This property contains data whenever the <span class="clsEvent">OnDataReceived</span> event fires. | This property returns the data that has been received from the remote user's application instance. This property contains data whenever the <span class="clsEvent">OnDataReceived</span> event fires. | ||
VBScript Syntax | === VBScript Syntax === | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 13: | Line 13: | ||
</div> | </div> | ||
JavaScript Syntax | === JavaScript Syntax === | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 20: | Line 20: | ||
</div> | </div> | ||
Property Value | === Property Value === | ||
A variant object containing the data received from the remote application. | A variant object containing the data received from the remote application. | ||
JavaScript Example | === JavaScript Example === | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 37: | Line 37: | ||
myGameTurn(myData); | myGameTurn(myData); | ||
} | } | ||
</pre> | |||
</div> | </div> | ||
Remarks | === Remarks === | ||
This property contains data that should be inspected every time the <span class="clsEvent">OnDataReceived</span> event occurs. | This property contains data that should be inspected every time the <span class="clsEvent">OnDataReceived</span> event occurs. |
Latest revision as of 01:41, 13 August 2022
Channel.Data Property
This property returns the data that has been received from the remote user's application instance. This property contains data whenever the OnDataReceived event fires.
VBScript Syntax
external.Channel.Data
JavaScript Syntax
window.external.Channel.Data
Property Value
A variant object containing the data received from the remote application.
JavaScript Example
function Channel_OnDataReceived() // This event is fired when data is received from the remote application using Channel.SendData. // Inspect the value of Channel.Data. { var myData; myData=window.external.Channel.Data; myGameTurn(myData); }
Remarks
This property contains data that should be inspected every time the OnDataReceived event occurs.