Create a two-dimensional array at runtime: Difference between revisions
Create a two-dimensional array at runtime (view source)
Revision as of 00:30, 9 March 2020
, 4 years ago→{{header|AppleScript}}: Noted an incorrect comment and a coding error
(→{{header|AppleScript}}: Noted an incorrect comment and a coding error) |
|||
Line 106:
set array to {}
</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}}==
|