2 Dimensional Dynamic Array

Results 1 to 2 of 2

Thread: 2 Dimensional Dynamic Array

  1. #1
    Join Date
    Dec 1969

    Default 2 Dimensional Dynamic Array

    How do I create one? The one dimensional ones are easy enough, and they are created quite nicely when using getrows, but I can&#039;t find any information on creating multidimensional dynamic arrays anywhere. Does anyone have any ideas?<BR><BR>Thanks<BR>~Steve

  2. #2
    Join Date
    Dec 1969

    Default Use Redim

    You use redim just like you would with a single dimensional array. The only thing to note (the main hindrance) is that if you want to use Redim Preserve (which you&#039;ll most likely want to do) you can only redim the LAST dimension... see:<BR>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsstmredim.asp<BR><BR>Also, for a very good understanding of how VBScript manages variables and arrays, be sure to read Bill Wilkinson&#039;s killer article:<BR><BR>Variables, Values, and Arrays in VBScript<BR>http://www.4guysfromrolla.com/webtech/041101-1.shtml<BR><BR>hth!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts