Results 1 to 2 of 2

Thread: Data

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207

    Data

    Oh here is another vb to c# conversion problem that I am having.

    in vb I can do this:
    VB Code:
    1. myStr = DataSet.Tables("MyTable").Rows(0).Item("CollumnName")
    2. 'or something close to that
    now in c# i need a little assitance. I though it should be like this:
    PHP Code:
    myStr DataSet.Tables["MyTable"].Rows[0].Item["CollumnName"]
    //the problem is there is not ITEM 
    Does anyone know how to read a row of data out of a dataset in c#?

    Jeremy

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207
    To answer my own question one would do this by the following method:
    PHP Code:
    myData = (string) DataSet.Tables["MyTable"].Rows[0]["CollumnName"]; 
    Jeremy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width