Computing.Net > Forums > Programming > size of array in VB

size of array in VB

Reply to Message Icon

Original Message
Name: osaru
Date: April 21, 2004 at 22:10:52 Pacific
Subject: size of array in VB
OS: win
CPU/Ram: 1G
Comment:

How do I get the size of array in Visual Basic?


Report Offensive Message For Removal

Response Number 1
Name: drigz
Date: April 22, 2004 at 13:00:05 Pacific
Subject: size of array in VB
Reply: (edit)

in VB.net u can use arrayname.GetLength, or in 6.0 u can use UBound(arrayname) - LBound(arrayname)

UBound returns the highest possible index, LBound the lowest


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: size of array in VB

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software