Create a two-dimensional array at runtime: Difference between revisions

Content added Content deleted
(→‎{{header|AppleScript}}: Noted an incorrect comment and a coding error)
Line 106: Line 106:
set array to {}
set array to {}
</lang>
</lang>

To correct the last comment in the script above: when a script's run, the values of its properties, globals, and run-handler (''ie.'' top level) variables are saved back to the script file when the execution finishes. So variables containing bulky values like lists ideally ''should'' be set to something smaller before the end in order to prevent file bloat. Or local variables could be used, which would be the better option above as the <code>return</code> statement prevents the last line from being executed anway.


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==