Dump the list to an array

This commit is contained in:
Joshua Fuhs 2012-06-24 17:56:16 -04:00
parent ea230027a0
commit 725b809787
1 changed files with 7 additions and 0 deletions

View File

@ -102,3 +102,10 @@ List_size(l) {
StringSplit arr, l, `;
Return (arr0 - 1)
}
List_toArray(l, arrName) {
Local trimmedList
StringTrimRight, trimmedList, l, 1
StringSplit %arrName%, trimmedList, `;
Return (%arrName%0)
}