Subversion Repositories wimsdev

Rev

Rev 8903 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8903 czzmrn 1
numexam=!listintersect $numexam and $aexams
2
!if $numexam=$empty
14271 obado 3
  !reset listname
4
  !for k in $aexams
5
    current=!record $k of wimshome/log/classes/$wims_class/exams/.exams
6
    current=!line 4 of $current
7
    current=!replace internal , by $empty in $current
8
    listname=!append item $k | $current to $listname
9
  !next
10
  !exit
8903 czzmrn 11
!else
14271 obado 12
  !! it could actually just copy the file, but I think this way is safer
13
  !! does not copy "comment" and "option": do we need the two fields?
14
  nbexo=!recordcnt wimshome/log/classes/$wims_class/exams/.exam$numexam
15
  listdon=$empty
16
  !for k=1 to $nbexo
17
    tmp=!record $k of wimshome/log/classes/$wims_class/exams/.exam$numexam
18
    tmpweight=!line 1 of $tmp
19
    tmpexo=!line 2 of $tmp
20
    tmptitle=!line 3 of $tmp
21
    tmpdep=!line 4 of $tmp
22
    exodon=:$tmpweight\
8903 czzmrn 23
$tmpexo\
24
$tmptitle\
25
$tmpdep\
26
 
14271 obado 27
    listdon=!append line $exodon to $listdon
28
  !next k
29
  !appendfile wimshome/log/classes/$wims_class/exams/.exam$exam $listdon
30
  !reset job,numexam
31
  !read var.proc
32
!endif