Hi.
I'm currently developing a self-test application to be used by the staff at my school (SDD assignment), and I've hit a snag. I've created around 7 different "base" forms, each of which will be inherited for the particular questions that are going to be asked to the user.
Now, I created some subroutines to easily create those question forms. All you have to do to load a form is type in, say:
Createform_Mcho ice(formID, Question, answer1, answer2, answer3, answer4, answerCondition )
The question and multiple choice answers will then be automatically filled into a new form dimensioned. I then have a subroutine for the "Next Question" button on each form, which is meant to test the "AnswerConditio n" and if it is true then award a point to a variable. The answer condition changes for every form, so for example I would make it "chk1.Check ed = True".
Now when I put this condition into an If statement, it comes up with a conversion error.
For example,
If strAnswerCondit ion Then Word_GeneralRes ult += 1
The error states that it cannot convert a string (strAnswerCondi tion) to boolean.
What do I do?
I'm currently developing a self-test application to be used by the staff at my school (SDD assignment), and I've hit a snag. I've created around 7 different "base" forms, each of which will be inherited for the particular questions that are going to be asked to the user.
Now, I created some subroutines to easily create those question forms. All you have to do to load a form is type in, say:
Createform_Mcho ice(formID, Question, answer1, answer2, answer3, answer4, answerCondition )
The question and multiple choice answers will then be automatically filled into a new form dimensioned. I then have a subroutine for the "Next Question" button on each form, which is meant to test the "AnswerConditio n" and if it is true then award a point to a variable. The answer condition changes for every form, so for example I would make it "chk1.Check ed = True".
Now when I put this condition into an If statement, it comes up with a conversion error.
For example,
If strAnswerCondit ion Then Word_GeneralRes ult += 1
The error states that it cannot convert a string (strAnswerCondi tion) to boolean.
What do I do?
Comment