• 0

[VB/VB .NET] Access entire row from 2D array


Question

Should be simple but I just can't seem to get it. :whistle:

I have a 2D array with 22 rows and 4 columns. The application has to display certain rows depending on which options are selected. How can I display entire rows at a time without having to access the row cell by cell?

Thanks!

7 answers to this question

Recommended Posts

  • 0

I have a drop drown box and several check boxes. What is displayed in the large text box depends on what is selected in the drop down box or what is selected through the check boxes. The information is pulled through the click of a button which checks the drop down box and check box selections.

What would be the best way to go about it?

  • 0
  On 05/04/2010 at 02:58, Crackler said:

How can I display entire rows at a time without having to access the row cell by cell?

By not putting it in a 2D-array. What's currently in your array?
  On 05/04/2010 at 03:07, Crackler said:

I have a drop drown box and several check boxes. What is displayed in the large text box depends on what is selected in the drop down box or what is selected through the check boxes. The information is pulled through the click of a button which checks the drop down box and check box selections.

What would be the best way to go about it?

This is waaaaaaaay too vague. You're gonna have to be more specific about what kind of data you're trying to access and display.
  • 0

Each row has the following information:

Year - Movie - Actor - Adjusted Box Office

I have 22 rows of this information and each check box has one of the actor's names. For each actor chosen I have to display each row which contains their name. I wanted to know if I could reference the entire row instead of having to do (1, 0), (1, 1), (1, 2), (1 ,3) to get one row.

Less vague now? :blush:

  • 0

Sorry, Crackler, but I'm still wickedly confused about what exactly you're doing. Any sane individual would create a class or struct that has those 4 pieces of information as members.

But you're still just leaving too much information out for me to even begin to understand the specific problem. What datatypes are you using? How is the data being displayed? What control is being used to display the data? What's the data source? Christ, just post some code for us.

And most importantly: why does it matter that you have to make 4 index calls to get a row of data?? A computer does that in millseconds and it's not exactly difficult code.

I must be missing something.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • As a VR2 owner I don't think any thinking was involved with this product, mines mostly used to watch 2D content on a large screen, if I had a modern graphics card the VR would no longer be attached to the console
    • Can you please elaborate on what you mean by nuking it and the steps to do so?
    • I know, but I'm a creature of habit. It's hard enough for me to use macOS. I've been using Windows since I was 6. I do want to try Linux with the mini PC at some point since I have another desktop to use.  When you say wipe it, I'm assuming you mean to connect my USB drive with Windows to the mini PC, power it on and boot from the USB, delete the existing partition, and install Windows? Since I would never get to the desktop the first time, the odds of my USB drive being infected with malware and viruses are low?
    • I wouldn't use it anyway but I agree a price decrease should be present for nothing provided. I'm ok with my wireless charger from anker - I've NEVER plugged my phone in. Even the car base I (built) is wireless charging while it holds it for me.
    • Just got an S25 Ultra.... only because a family member was on an old S10 lite and needed an upgrade so I gave them my S23 Ultra and just bought my new 25. With this being maybe the only decent upgrade from the 25..it's a no deal for me. Honestly I doubt I'll upgrade again for another 3 years. The main reason I went to the 25 ultra was for Satellite usage but apparently duped with only for emergencies. I'm often times in a location with a clear LOS but there is so many customers (Verizon) that the signal is saturated so bad that I can't even send a text message out. It's kinda BS to this day they know there will be that many customers in those tight areas (football stadiums) but won't bring in a mobile trailer to boost signal capacity.
  • Recent Achievements

    • Collaborator
      fernan99 earned a badge
      Collaborator
    • Collaborator
      MikeK13 earned a badge
      Collaborator
    • One Month Later
      Alexander 001 earned a badge
      One Month Later
    • One Month Later
      Antonio Barboza earned a badge
      One Month Later
    • Week One Done
      Antonio Barboza earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      584
    2. 2
      ATLien_0
      219
    3. 3
      Michael Scrip
      172
    4. 4
      Xenon
      138
    5. 5
      +FloatingFatMan
      127
  • Tell a friend

    Love Neowin? Tell a friend!