home *** CD-ROM | disk | FTP | other *** search
- on docargalista fichatest, tope
- set test to 0
- set solucion to 0
- set correcta to 0
- set total to the number of lines in field fichatest
- repeat with i = 1 to total
- set aux to word 1 of line i of field fichatest
- case aux of
- "#TEST":
- set numerotest to word 2 of line i of field fichatest
- set test to 1
- set solucion to 0
- set correcta to 0
- "#RES":
- set resp to word 2 of line i of field fichatest
- set solucion to 1
- set test to 0
- set correcta to 0
- "#SOL":
- set letra to word 2 of line i of field fichatest
- set correcta to 1
- set test to 0
- set solucion to 0
- Question.Sol.Set(fichatest, value(numerotest), letra)
- EMPTY:
- set hola to 1
- otherwise:
- if test = 1 then
- set texto to Question.Enun.get(fichatest, value(numerotest))
- set nuevotexto to texto & line i of field fichatest
- Question.Enun.Set(fichatest, value(numerotest), nuevotexto)
- end if
- if solucion = 1 then
- case resp of
- "A":
- Question.OpA.Set(fichatest, value(numerotest), line i of field fichatest)
- "B":
- Question.OpB.Set(fichatest, value(numerotest), line i of field fichatest)
- "C":
- Question.OpC.Set(fichatest, value(numerotest), line i of field fichatest)
- end case
- end if
- end case
- end repeat
- end
-