matrix size

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

Guest

I have a 2 dimenisonal matrix. I want to find the size of the different
dimensions.
I know how find one dimension by using the Ubound. This gives me x=3.
However I would like to know the other dimension also, ie 5. Can yuo please
help me? Thank you very much!

Option Base 1
Dim strRatingMatrix() As String
ReDim strRatingMatrix(3, 5)
x = UBound(strRatingMatrix)
 
x = UBound(strRatingMatrix, 1)
y = UBound(strRatingMatrix, 2)

Regards,
Stefi


„Arne Hegefors†ezt írta:
 

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