Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8753185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:22:51+00:00 2026-06-13T13:22:51+00:00

I am using Visual Studio 2010 with Visual Basic. I have a dynamic 2

  • 0

I am using Visual Studio 2010 with Visual Basic. I have a dynamic 2 dimensional array that is coming into the function. I cannot figure out how to get the size of first row.

For example let say this array is passe into the function:

{{1, 0, 5, 4},
 {8, 1, 4, 4},
 {0, 1, 4, 4},
 {7, 7, 7, 4},
 {7, 7, 7, 4},
 {8, 1, 4, 4}}

In this example I would get 4 because if you look at for example first row it has 4 elements. And for example in this case:

{{1, 0, 5, 4, 7, 7},
 {8, 1, 4, 4, 7, 7},
 {0, 1, 4, 4, 8, 8},
 {7, 7, 7, 4, 3, 3},
 {7, 7, 7, 4, 4, 4},
 {8, 1, 4, 4, 1, 9}}

I would get back 6 cause rows have 6 elements in it. The array is coming in always 2d and rows are always the same length. Column size is unknown and row size in unknown. But if I find out row size for one row the all rows are that size if that makes sense.

I have tried this UBound(inArray, 1) but it does not work. Please help me figure this out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:22:52+00:00Added an answer on June 13, 2026 at 1:22 pm

    Have a look at using Array.GetUpperBound Method

    Gets the upper bound of the specified dimension in the Array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using visual studio 2010. i have a three dimensional structure array which,
I have created a program in Visual Basic using Microsoft Visual Studio 2010 Professional.
I have a WCF-Service, written in Visual Basic using Visual Studio 2010. I would
We have developers using Visual Studio 2010 professional and some trying out Visual Studio
I'm using Visual Studio 2010 RC. Would it be possible that after doing my
Using Visual Studio 2010 I created an Office 2010 Word add-in project that has
For a solo developer using Visual Studio 2010 beta 2 is TFS Basic a
I have deployed a website using Visual Studio 2010 on IIS6. I used one
I’m trying to write a basic ASP.NET form (using Visual Studio 2010) to submit
I'm using Visual Studio 2010. I have a class with the following constructor: CVideoAnnotation::CVideoAnnotation(std::string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.