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

View file

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