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
Jeff_KingstonAsked:
Who is Participating?
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!
0
Fernando SotoRetiredCommented:
Hi Jeff;

You have not attach anything to the post.
0
Jeff_KingstonAuthor Commented:
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Jeff_KingstonAuthor Commented:
That was my fat fingers not clicking the upload file button
0
É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

0
Jeff_KingstonAuthor 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
0
Éric MoreauSenior .Net ConsultantCommented:
you are still missing .Item or remove the . between the row number and the field name.
0

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?
0
Jeff_KingstonAuthor 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.
0
É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!
0
Jeff_KingstonAuthor Commented:
That makes me feel better!
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.