sqlsamurai
Programmer
Can someone help me decifer this line of code? I saw it somewhere and have used it a couple of times but I'm not sure what the concept is called or why it works.
Me.cboDivisions.Properties.GetDataSourceRowByKeyValue(Me.cboDivisions.EditValue)("LocationID").ToString
If this piece of code were to take up two lines this is what it would look like this
Dim row As DataRowView = Me.cboDivisions.Properties.GetDataSourceRowByKeyValue(Me.cboDivisions.EditValue)
Messagebox.Show(row("LocationID").ToString)
I'm referring to the way I can butt the set of parenthesis together and I've highlighted this in green and red.
Thanks for the help.
Me.cboDivisions.Properties.GetDataSourceRowByKeyValue(Me.cboDivisions.EditValue)("LocationID").ToString
If this piece of code were to take up two lines this is what it would look like this
Dim row As DataRowView = Me.cboDivisions.Properties.GetDataSourceRowByKeyValue(Me.cboDivisions.EditValue)
Messagebox.Show(row("LocationID").ToString)
I'm referring to the way I can butt the set of parenthesis together and I've highlighted this in green and red.
Thanks for the help.