This is for MS-Word (version 2010):
I want to populate a 2-dim array that is 44 rows and 4 columns with constant values.
Each array row will have constant values something like:
1) "long string of text" (string), 2) Priority # (integer), 3) Visibility (boolean), 4) QuickStyle (boolean)
Is there a shortcut way to load these constants (44x4 or 176 total constants) in this array in a quick way that uses the array function and/or some form of the split function?
Something like:
Or, is the only way to do this is thru an i, j two dimensional type loop routine?Please Login or Register to view this content.
One option: I can visualize loading the 176 constants into a large TEMP one-dimensional array using the split function (visually typed like above with the columns lined up). And, then using an i, j loop to load the two dimensional array and using special math to parse out the values from the TEMP array into the final desired array: {TwoDimArray (i, j) = TEMP_Array((i-1)*4 + j)}. This wouldn't be too busy, but still wondered if all this could be done by using some sort of slick function syntax like above.
My purpose here is to arrange these constants on the VB page so to make it easy to "see" or understand the arrangement of the constants in the two-dimensional array, as like the example text in the code snippet above. ... Thanks!
Bookmarks