如何在VB.net上将数据从q发送到文本框

时间:2016-06-28 02:36:26

标签: vb.net

this is stored procedure 这是SelectOne的功能

  Public Function One(Id As Integer) As Object Implements IStudents.One
    Try
        Return db.SP_SelectOneStudent(Id).ToArray

    Catch ex As Exception
        Return False
    End Try
End Function
Dim q = student.One(StudentID)

1 个答案:

答案 0 :(得分:0)

假设您要将变量q中的每个字段显示为TextBox:

...
Dim StringToShow as String = ""
For Each StringToAdd as String In q
    StringToShow &= StringToAdd & " "
Next

YourTextBox.Text = StringToShow
...