<doc>
  <legacy_id>2516</legacy_id>
  <name>size</name>
  <type>property</type>
  <syntax>
    <example>get the size of <i>object</i></example>
  </syntax>
  <library></library>
  <objects>
    <image/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Files, Folders, &amp; Resources</category>
    <category>The System Environment</category>
  </classification>
  <references>
    <function tag="diskSpace">diskSpace Function</function>
    <function tag="hasMemory">hasMemory Function</function>
    <function tag="heapSpace">heapSpace Function</function>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Reports the amount of disk space taken by an <glossary tag="object">object</glossary>.</summary>
  <examples>
    <example>if the size of image myImage &gt; 20000 then beep</example>
  </examples>
  <description>
    <p>Use the <b>size</b> <glossary tag="property">property</glossary> to judge how much memory an <glossary tag="object">object</glossary> takes when displayed.</p><p/><p><b>Value:</b></p><p>The <b>size</b> <glossary tag="property">property</glossary> reports an <keyword tag="integer">integer</keyword>.</p><p/><p>This property is read-only and cannot be set.</p><p/><p><b>Comments:</b></p><p>The <b>size</b> of an <keyword tag="image">image</keyword>, <glossary tag="EPS">EPS object</glossary>, <glossary tag="audio clip">audio clip</glossary>, or <glossary tag="video clip">video clip</glossary> is is the number of <glossary tag="byte">bytes</glossary> of disk space that the <glossary tag="object">object</glossary> takes up.</p><p/><p>The <b>size</b> <glossary tag="property">property</glossary> of a <object tag="stack">stack</object> is always 10000. For <function tag="stacks">stacks</function>, this <glossary tag="property">property</glossary> is included in <glossary tag="LiveCode">LiveCode</glossary> for compatibility with imported <keyword tag="top">HyperCard</keyword> stacks and does not report a meaningful value.</p><p/><p><b>Note:</b> The size of an image that has a <property tag="filename">filename</property> is always empty. To get the true size of such an image, either use the detailed <function tag="files">files</function>, or check the length of the file url.</p>
  </description>
</doc>