locked
C# to VB RRS feed

  • Question

  • User1934808362 posted
    Hi guys:) I have a project in VB and someone gave me code i need but the prob is its in c# can someone pls help me with a conversion or sumthing if that is even possible:) thanks heres the code object objAnswer = comm.ExecuteScalar() TextBox1.text = objAnswer.ToString() thanks
    Monday, November 3, 2008 9:21 AM

Answers

  • User-1995538749 posted

    Dim objAnswer As Object = comm.ExecuteScalar()
    TextBox1.Text = objAnswer.ToString 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 3, 2008 9:26 AM

All replies

  • User-1995538749 posted

    Dim objAnswer As Object = comm.ExecuteScalar()
    TextBox1.Text = objAnswer.ToString 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 3, 2008 9:26 AM
  • User-990694832 posted

    A person could use this statement:

    TextBox1.Text = ctype(comm.ExecuteScalar,string) 

    DK 

     

    Monday, November 3, 2008 9:30 AM