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. Problem with Code

Problem with Code

Scheduled Pinned Locked Moved C#
csharphelplearningjava
4 Posts 4 Posters 0 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.
  • M Offline
    M Offline
    Mohammed Amine
    wrote on last edited by
    #1

    Hi , well guys , i think i have a problem right here i was programming in vb.net , but i realized that C# is two much better cuz i was enjoying programming on Java so the C# & Java are approximatley the same . but today i was trying to right this line of code : in vb.net we right : DataSet.Tables.Rows(0).Items(0) in C# i tried : DataSet.Tables.Rows(0).Items(0); but it doesn't work can you tell me why ? & as a beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net book i'll be gratefull Thank you very much for your help

    try to be good if you can't be the best

    G L 2 Replies Last reply
    0
    • M Mohammed Amine

      Hi , well guys , i think i have a problem right here i was programming in vb.net , but i realized that C# is two much better cuz i was enjoying programming on Java so the C# & Java are approximatley the same . but today i was trying to right this line of code : in vb.net we right : DataSet.Tables.Rows(0).Items(0) in C# i tried : DataSet.Tables.Rows(0).Items(0); but it doesn't work can you tell me why ? & as a beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net book i'll be gratefull Thank you very much for your help

      try to be good if you can't be the best

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      VB uses parantheses both for method parameters and indices. When you convert code to C#, you have to know if it's a method call or an index that you are using, as C# uses brackets [] for indices. DataSet.Tables.Rows[0].Items[0]

      --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • M Mohammed Amine

        Hi , well guys , i think i have a problem right here i was programming in vb.net , but i realized that C# is two much better cuz i was enjoying programming on Java so the C# & Java are approximatley the same . but today i was trying to right this line of code : in vb.net we right : DataSet.Tables.Rows(0).Items(0) in C# i tried : DataSet.Tables.Rows(0).Items(0); but it doesn't work can you tell me why ? & as a beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net book i'll be gratefull Thank you very much for your help

        try to be good if you can't be the best

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Mohammed Amine wrote:

        beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net

        C# books - ever thought of using google (or any other search engine) or even visiting Microsoft for C# tutorials. Try this link [^] or perhaps reading Marc Clifton's 2 part series starting with [^] or any of the other beginner tutorials here on Code Project

        K 1 Reply Last reply
        0
        • L Lost User

          Mohammed Amine wrote:

          beginner in C# i ask everybody who wanna help me if somebody can give me a link of a C#.Net

          C# books - ever thought of using google (or any other search engine) or even visiting Microsoft for C# tutorials. Try this link [^] or perhaps reading Marc Clifton's 2 part series starting with [^] or any of the other beginner tutorials here on Code Project

          K Offline
          K Offline
          Kevin McFarlane
          wrote on last edited by
          #4

          Richard A. Abbott wrote:

          C# books - ever thought of using google (or any other search engine)

          Strange how so many people seem never to have heard of Google! Perhaps if he's asked for C# book recommendations, rather than just C# books. Perhaps that's what he meant to say. If so he's excused, as English is not his first language.

          Kevin

          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