[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

What does this syntax mean?

I came upon this the other day ('Tables' is of type DataTable):

Tables.Rows(0)(Tables.Columns.Item(2).ColumnName())

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

Tables.Rows(0)(what'sthisforandwhyisitlegal?)

Thanks!
0
MIKEV
Asked:
MIKEV
2 Solutions
 
danmiller78Commented:
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.
0
 
planoczCommented:
That is the index location of the column Name and it reads the name for you
0
 
MIKEVAuthor Commented:
Wierd.  Never seen that before.  Thanks!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now