Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Fileinfo/Properties/Size: 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:46:04 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/fileinfo/properties/Size.htm --> | <!-- Generated @ 08/12/2022 23:46:04 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/fileinfo/properties/Size.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Fileinfo/Index|Properties]].Size Property = | ||
Returns a <span class="clsEnum">Long</span> value representing the size of the file that is being transferred. | Returns a <span class="clsEnum">Long</span> value representing the size of the file that is being transferred. | ||
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 <span class="clsEnum">Long</span> value representing the size of the file being transferred. If no file is being transferred, the property has no value. | A <span class="clsEnum">Long</span> value representing the size of the file being transferred. If no file is being transferred, the property has no value. | ||
VBScript Example | === VBScript Example === | ||
To write the size of the file in bytes, write the value of <span class="clsMethod">Channel.FileInfo.Size</span>. | To write the size of the file in bytes, write the value of <span class="clsMethod">Channel.FileInfo.Size</span>. | ||
Line 33: | Line 33: | ||
Set myChannel = external.Channel | Set myChannel = external.Channel | ||
testFile = myChannel.FileInfo | testFile = myChannel.FileInfo | ||
document.write( "File size is " + testFile.Size ) | document.write( "File size is " + testFile.Size )</pre> | ||
</div> | </div> |
Latest revision as of 01:56, 13 August 2022
Properties.Size Property
Returns a Long value representing the size of the file that is being transferred.
VBScript Syntax
external.Channel.FileInfo.Size
JavaScript Syntax
window.external.Channel.FileInfo.Size
Property Value
A Long value representing the size of the file being transferred. If no file is being transferred, the property has no value.
VBScript Example
To write the size of the file in bytes, write the value of Channel.FileInfo.Size.
Dim testFile Set myChannel = external.Channel testFile = myChannel.FileInfo document.write( "File size is " + testFile.Size )