Size of Array

Results 1 to 2 of 2

Thread: Size of Array

  1. #1
    polarbear Guest

    Default Size of Array

    Hi,<BR><BR>I used the &#039Split&#039 function in VBScript to return the different sub-strings seperated by a certain delimiter stored in an array.<BR><BR>Is there anyway for me to find out the number of sub-strings that were returned, ie. the size of the array?<BR><BR>Thank you.

  2. #2
    Join Date
    Dec 1969

    Default RE: Size of Array

    You can use the UBound(arrayname) function.<BR><BR>E.G.<BR><BR>Array1 - Split(varaible1, ",")<BR><BR>TotalEntries = UBound(Array1) + 1<BR><BR>Remember that the array is initialized at 0, so for the total, we need to add 1.<BR><BR>HTH<BR><BR>Jerry

Posting Permissions

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