Cast from type 'DBNull' to type 'Bo

CrabbyData

New Member
I'm getting an error "Cast from type 'DBNull' to type 'Boolean' is not valid" on the line where I'm creating an instance of a class. Here is a code snippet. Any suggestions are welcome.<BR><BR><BR>'Populate arrEvaluationID array<BR>Dim evals as ListItem<BR> for each evals in Evaluations.items<BR> Redim Preserve arrEvaluationID arrEvaluationID.GetUpperBound(0)+1)<BR> arrEvaluationID(arrEvaluationID.GetUpperBound(0)) = evals.value<BR> next<BR><BR>'populate arrQuestionID<BR> Dim OpenQuestions as ListItem<BR> for each OpenQuestions in OpenQuestionID.items<BR> Redim Preserve arrQuestionID(arrQuestionID.GetUpperBound(0)+1)<BR> arrQuestionID(arrQuestionID.GetUpperBound(0)) = OpenQuestions.value<BR> next<BR><BR>'Create an instance of QuestionsummaryReport<BR>ReportOpen = new QuestionSummaryReport(arrEvaluationID, arrQuestionID, QuestionTypeEnum.OpenQuestion, true)<BR><BR>
 
Back
Top