Finding array size in VB6

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Can anyone tell me, how to find the size of an multidimensional Array in VB6 ?

Thanks in advance
 
Vinoth Kumar.V.K said:
Can anyone tell me, how to find the size of an multidimensional Array in
VB6 ?

This is a VB.NET group. For VB6-related questions, post to one of the
groups in the microsoft.public.vb.* grpups hierarchy.
 
¤ Hi
¤
¤ Can anyone tell me, how to find the size of an multidimensional Array in VB6 ?
¤

Yes, you can use the following in order to determine the number of dimensions:

http://vbnet.mvps.org/index.html?code/helpers/getarraydims.htm

You can then use UBound for each dimension in order to determine the number of elements allocated.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top