What does this syntax mean?

Posted on 2004-11-18
Last Modified: 2010-04-24
I came upon this the other day ('Tables' is of type DataTable):


It works, but what does the second bracketed reference mean?


Question by:MIKEV

    Accepted Solution

    Tables.Rows(x)(y) references a cell. X is the row, Y is the column. If you named the column, you can use the column name instead of the index. This code is looking up the name of the column by referencing the index. You would get the same result by putting the index in directly.
    LVL 27

    Assisted Solution

    That is the index location of the column Name and it reads the name for you

    Author Comment

    Wierd.  Never seen that before.  Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now