Advertisement
Ortund

Untitled

Nov 14th, 2011
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.48 KB | None | 0 0
  1.         If QuestionData.Tables(0).Rows.Count > 0 Then
  2.             For i As Integer = 0 To QuestionData.Tables(0).Rows.Count - 1
  3.         ' "CorrectAnswer" is a MSSQL bit datatype
  4.                 If QuestionData.Tables(0).Rows(i)("CorrectAnswer") = True Then
  5.                     QuestionData.Tables(0).Rows(i)("CorrectAnswer") = "True"
  6.                 Else
  7.                     QuestionData.Tables(0).Rows(i)("CorrectAnswer") = "False"
  8.                 End If
  9.             Next
  10.         End If
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement