VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to retrive data from table? Posted by paulvb on 7 Feb 2007 at 3:53 PM
In my table i have a row called barcode. I need to find barcode 456456, and display the rows information in a Textbox?

Can anyone help, just a beginner.
Report
Re: How to retrive data from table? Posted by PavlinII on 12 Feb 2007 at 8:58 AM
: In my table i have a row called barcode. I need to find barcode 456456, and display the rows information in a Textbox?
:
: Can anyone help, just a beginner.
:
Hi,
I guess you have table with several rows and there exist column "BarCode" in your table.

For Each r As DataRow In MyTable.Rows
  txtBarCodes.Text &= CStr(r("BarCode")) & vbNewLine
Next


Loop throught each Row in Rows of table, get value of r("BarCode"), convert it to string by CStr - CStr(r("BarCode")) and add new line separator (set txtBarCodes.MultiLine=True)

Hope this helps

Pavlin II[/size]

Don't take life too seriously anyway you won't escape alive from it!





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.