Subversion Repositories wimsdev

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3261 obado 1
#Check Exo verifie l'exercice qexo de la feuille
2
#Pour commencer, on verifie la feuille
3
type=sheets
4
!read scripts/check.proc
5
!if $error!=$empty
6
 !exit
7
!endif
8
 
9
#si le parametre qexo contient un caractere special, on abandonne
10
qexo=!translate internal ./,;?* to $             $ in $qexo
11
!if $ $ isin $qexo
12
 qexo=
13
!endif
14
 
15
#On compte le nombre d'exercices de la feuille qsheet
16
exocnt=!recordcnt $qfile
17
 
18
 
19
#Si l'exo qexo n'existe pas, on abandonne
20
!if $qexo=$empty
21
 error=undefined qexo
22
 !exit
23
!else
24
 !if  $qexo>$exocnt
25
  error=exercice #$qexo does not exist
26
  !exit
27
 !endif
28
!endif
29
 
30
# L'exo existe. on initialise les variables
31
 
32
exo=!record $qexo of $qfile
33
 
34
exo_module=!line 1 of $exo
35
exo_params=!line 2 of $exo
36
exo_points=!line 3 of $exo
37
exo_weight=!line 4 of $exo
38
exo_title=!line 5 of $exo
39
exo_description=!line 6 of $exo