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 7886633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:22:06+00:00 2026-06-03T05:22:06+00:00

I Declare an 2D Unlimited array. My code: Dim array As String(,) = New

  • 0

I Declare an 2D Unlimited array.
My code:

Dim array As String(,) = New String(,) {}
        array(0, 0) = "top left"
        MsgBox(array(0, 0))

The problem is the msgbox shows nothing.

  • 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-03T05:22:08+00:00Added an answer on June 3, 2026 at 5:22 am

    You can change the array bounds when needed with ReDim Preserve, which copies the existing array into an array with new dimensions.

    But it might be simpler to use a List instead, which is “unlimited” (no need to specify range, or resize manually). But a list only has one dimension. To mimick a 2D array, you could have a List of Lists (each List item is a List itself).

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

Sidebar

Related Questions

Declare: LPWSTR** lines= new LPWSTR*[totalLines]; then i set using: lines[totalLines]=&totalText; SetWindowText(totalChat,(LPWSTR)lines[totalLines]); totalLines++; Now I
declare function tns:getDt($inp as xs:string) as element(ns1:Sschema)*{ let $primary := fn-bea:get-property('PRIMARY','1') let $sec :=
declare @t1 Table ( a1 int ) insert into @t1 select top 10 AnimalID
declare @top int set @top = 5 select top @top * from tablename Is
DECLARE v_count NUMBER ; begin SELECT Count(COMPLETION) INTO v_count FROM AIMS WHERE Code=997 AND
declare type array is table of src%rowtype index by binary_integer; l_data array ; begin
declare @string nvarchar(MAX) = '' How many chars are available in @string?
I declare a new struct with the name of Struct I have a generic
DECLARE @dbName nvarchar(128) = 'myDb' DECLARE @siteId int exec ('SELECT TOP 1 @siteId =
I declare several select items (about 4-5 dozen) by adding the following string to

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.