Results 1 to 3 of 3

Thread: VB -> C# Conversion Help

  1. #1

    Thread Starter
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346

    VB -> C# Conversion Help

    I am trying to convert this

    Code:
    m_DS.Tables(0).Rows(0).Item(val) = dr.Item(val)
    into C#. The m_DS is a DataSet, and dr is a DataRow thats getting passed into the method. val is a item thats currently in the DaraRow DataColumn. (I hope that makes sense.)
    Thanks!
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    not really but i will take a swing as to what u mean
    something like

    m_DS.Tables[0].Rows[0].Item["Name"] = dr["Name"]

  3. #3

    Thread Starter
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346

    [RESOLVED] VB -> C# Conversion Help

    That was it, thanks, i had the first part correct, it was the dr[val] part i was messing up. Thanks
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


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