Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

referencing fields

Status
Not open for further replies.

aharris2693

Programmer
Jul 15, 2003
45
US
Is there any way to pull data from a dataset and put it into a variable? I would think that this would be very easy, but the only way I can find to do it is by binding an object and then making the variable into that objects text. I am used to programming using ASP, but am trying to learn VB.net. In ASP, it would be as simple as dbRS("ID"), is there something like this in VB.net? Any help would be greatly appreciated.
 
It depends on how you are bringing the data accross.

If into a DataTable, then:
Something = MyDataTable.Rows(RowNumber).Item(ColumnNumber).ToString


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top