how take value from dataset in C# RRS feed

  • Question

  • I am working turning a visual basic project to c #.

    I want take value from data set but it show me a error, I searched the documentation and I can not find the error.

     value =  ds.Tables(0).Rows(0)(0).ToString();

    error show: Non-Invocable member. Date set table cannot be used like a method.

    if you could give me an idea how to solve this.
    Thank you


    Monday, November 5, 2018 4:15 PM


  • Hello, 

    > value =  ds.Tables(0).Rows(0)(0).ToString();

    In C# to access to an element of array used [].

    Sincerely, Highly skilled coding monkey.

    • Marked as answer by Fredy68 Monday, November 5, 2018 4:33 PM
    Monday, November 5, 2018 4:29 PM

All replies