Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. a syntax question?

a syntax question?

Scheduled Pinned Locked Moved C#
databasequestion
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BillAnton
    wrote on last edited by
    #1

    Hi to all, I am trying to change a boolean field in an Access database table. DataRow[] selectRows = dscurr1.Tables["currlist"].Select("curr='true'"); foreach (DataRow myRow in selectRows) { idx = Convert.ToInt32(myRow["notableID"]); } This locates the index to the row that has the only boolean True row in this small table, but now I need to change it to False and realize I need to use an indexer to the DataRow but am lost as to how it should be laid out syntacically. Regards, Bill Antonacchio

    H 1 Reply Last reply
    0
    • B BillAnton

      Hi to all, I am trying to change a boolean field in an Access database table. DataRow[] selectRows = dscurr1.Tables["currlist"].Select("curr='true'"); foreach (DataRow myRow in selectRows) { idx = Convert.ToInt32(myRow["notableID"]); } This locates the index to the row that has the only boolean True row in this small table, but now I need to change it to False and realize I need to use an indexer to the DataRow but am lost as to how it should be laid out syntacically. Regards, Bill Antonacchio

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Just use myRow["curr"] = false. If this isn't what you're asking about, please rephrase your question.

      Microsoft MVP, Visual C# My Articles

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups