{"identifier":56991,"topic":"Functions","name":"heapSpace","text":"<code><pre>the heapSpace\n<\/pre><\/code> Value returned: a number equal to the amount of working memory HyperCard has left (the number of bytes remaining in HyperCard\u2019s application heap) <br><br>\n\n The memory that HyperCard can use is divided into two parts\u2014the heap and the stack. <code>StackSpace<\/code>  returns the amount of memory that\u2019s available in the stack portion. <code>HeapSpace<\/code> returns the amount available in the heap portion.  <br>\n<br>\n\nThe available memory determines whether the user can use the Paint tools, whether HyperCard can open a stack in a new window, and other performance-related factors.","related":{"32809":null,"11662":"stackSpace"},"examples":"get the heapSpace()\nif it < 100 then ...","demo":"","debug":{"9":["the heapSpace\r\rValue"],"10":["\rThe available memor"]}}