Sorting Arrays

Results 1 to 2 of 2

Thread: Sorting Arrays

  1. #1
    Stan M. Guest

    Default Sorting Arrays

    I am using the array sort from the article "Sorting Two Dimensional Arrays: VBScript Implementation"<BR><BR>The script returns a "Type Mismatch" on the UBound(vec,2). If I hardcode UBound(26) then it works, but I don&#039t want to do this.<BR><BR>I found an article from Microsoft on returning arrays from server-side objects that said this is because of variables being stored as VARIANTS. I tried "Dim Pivot() as variant" but it did not work.<BR><BR>Any ideas?

  2. #2
    Stan M. Guest

    Default Solved my own problem

    Solved my own problem by using this solution:<BR><BR>upperb = UBound(arrVals,2)<BR>Redim pivot (upperb)<BR><BR>

Posting Permissions

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