Last active
November 13, 2017 14:04
-
-
Save davebrny/982a35ebfa43871846ff8c9a1cda3c24 to your computer and use it in GitHub Desktop.
(autohotkey) - clear a split array/object array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear_split(byRef name) { | |
loop, % isObject(name) ? name.maxIndex() : %name%0 | |
{ | |
%name%%a_index% := "" | |
name[a_index] := "" | |
} | |
%name%0 := "" | |
name := "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
clear_split("split") <--- name in quotes
clear_split(split) <--- variable/object name