afeldspar / mailstop-sort

A tool for producing usefully-formatted lists from TSV (tilde-separated-values) input.
0 stars 0 forks source link

Clean up array usage #11

Open afeldspar opened 9 years ago

afeldspar commented 9 years ago

Creating arrays in VBScript is more difficult than I remembered. This page provides some promising approaches to neaten the code: http://windowsitpro.com/article/vbscript/understanding-vbscript-arrays-5627

afeldspar commented 8 years ago

This looks like it is even closer to the problem I was running into (and the solution): http://stackoverflow.com/questions/9815083/vbscript-create-an-array-in-function-based-on-parameter

afeldspar commented 8 years ago

How did I not know that you can declare an array to be dynamic from the start by declaring it with "Redim"??

afeldspar commented 8 years ago

How did I not know that you can declare an array to be dynamic from the start by declaring it with "Redim"??

Because apparently, you can't. Here's yet another guide to what you can or can't do; let's hope this one is more accurate: https://technet.microsoft.com/en-us/library/ee198862.aspx