If your tutorial has more parts, you will need to do the following:
• Add more variables, such as
visitedPart4
and
visitdPart5
,
and
declare them with
Dim
state ments.
• Initialize the added vari ables in the
Ini
tial
ize
pro ce dure, with
lines like
visitedPart4 = False
.
• Add more pro
cedures (such as
ReturnToMenuFromPart4
and
ReturnToMenuFromPart5
) to re turn to the menu
from the added parts
of the tutorial. Be sure to tie the menu buttons to those parts of the tu torial.
• Add more parts to the
If
ques tion in
DoWeShowQuizButton
. For
ex am ple:
If visitedPart1 = True And visitedPart2 = True _
And visitedPart3 = True And visitedPart4 = True _
And visitedPart5 = True Then
• Add more smiling sun shine pic tures next
to the ad ditional menu but-
tons. Hide them in the
Ini
tial
ize
pro cedure and show them in the
ad
di tional
ReturnToMenuFromPart
pro ce dures.
Of course, this same structure does not need to be used for a tu torial and
quiz; it could be used for any thing with several parts. If you want your stu dents
to complete certain parts before
completing some other parts, you can use ex -
actly the same code.
Con clu sion
You now have seen several ex amples of ways to
create tu torials and quiz-
zes. You can create dif ferent kinds of questions and keep and re port scores in
different ways. In the next chapter, you learn a few more
scripting tricks and get
some more ex planation about some pro gramming structures.
Con clu sion 115