Moving data to texboxes from dataset

New to .NET and I have a VB6 app that I am attempting to convert to VB2010

I have attached a block of code that fills a dataset but when I try to move fields to textboxes I am getting Identifier expected error

I appreciate your assit
Larry RungrenDirector of TechnologyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
you forgot to attach your code!
Fernando SotoRetiredCommented:
Hi Jeff;

You have not attach anything to the post.
Larry RungrenDirector of TechnologyAuthor Commented:
Need More Insight Into What’s Killing Your Network

Flow data analysis from SolarWinds NetFlow Traffic Analyzer (NTA), along with Network Performance Monitor (NPM), can give you deeper visibility into your network’s traffic.

Larry RungrenDirector of TechnologyAuthor Commented:
That was my fat fingers not clicking the upload file button
Éric MoreauSenior .Net ConsultantCommented:
you are missing the table and the row:

            txtDescription.Text = ds.tables(0).row(0).item("Description").ToString();
            txtgroup.Text = ds.tables(0).row(0).item("Group").ToString();
             txtDate.Text = ds.tables(0).row(0).item("date").ToString();

Open in new window

Larry RungrenDirector of TechnologyAuthor Commented:
txtDescription.Text = ds.tables(0).Rows(0).("Description").ToString();
                txtgroup.Text = ds.tables(0).Rows(0).("Group").ToString();
                txtDate.Text = ds.tables(0).Rows(0).("date").ToString();
 
still generates

Error      1      Identifier expected.      C:\Users\jkingston.MCLE\documents\visual studio 2010\Projects\TermSummaryInput2\TermSummaryInput2\Form1.vb      300      60      TermSummaryInput2
Error      2      Identifier expected.      C:\Users\jkingston.MCLE\documents\visual studio 2010\Projects\TermSummaryInput2\TermSummaryInput2\Form1.vb      301      54      TermSummaryInput2
Error      3      Identifier expected.      C:\Users\jkingston.MCLE\documents\visual studio 2010\Projects\TermSummaryInput2\TermSummaryInput2\Form1.vb      302      53      TermSummaryInput2
Éric MoreauSenior .Net ConsultantCommented:
you are still missing .Item or remove the . between the row number and the field name.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Éric MoreauSenior .Net ConsultantCommented:
and why do you have ; if you are in VB?
Larry RungrenDirector of TechnologyAuthor Commented:
Thanks.

Your assist and astute eye has me on the right track! :)

As I said I'm fairly new to .NET and the code that had the ; was grabbed from code I found browsing the web. I heard that perhaps VB will be phased out in the not to distant future, is that true?

it is amazing to me that simple processes when being upgraded now require 3 times the code to do the same thing. I know advancing technology, but we are going back to complex ways to do simple things like we did 30 years ago.

The only thing left is moving a sql Text field to a textbox and then I'm home free.  Figured out dates and $$$  any help would be appreciated.
Éric MoreauSenior .Net ConsultantCommented:
>>I heard that perhaps VB will be phased out in the not to distant future, is that true?

This is just rumours. Every year, I go to the MVP summit in Redmond and sit with the product team. VB and C# are hands-in-hands now. They are almost on par and they will remain. Don't forget that Microsoft just completely rewrote the compiler (Roslyn) and VB is still in there. It would have been the perfect time to kill it but they didn't.

So long live VB!
Larry RungrenDirector of TechnologyAuthor Commented:
That makes me feel better!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.