Rev 20 | Rev 7210 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !set methtit=Effacer des hypothèses inutiles |
2 | !set methparmtype=special |
||
3 | !set methparmrelax=1 |
||
4 | !set stepnocount=yes |
||
5 | !set methhelp=Vous pouvez utiliser cette méthode pour enlever les hypothèses\ |
||
6 | inutiles, afin de clarifier la situation. Mais <b>attention</b> ! Si vous\ |
||
7 | enlevez une hypothèse indispensable, vous ne pourrez plus aboutir !\ |
||
8 | <p>\ |
||
9 | Vous pouvez appliquer cette méthode autant de fois que vous voulez sans être\ |
||
10 | pénalisé dans votre score, car elle n'avance pas le compteur d'étape pour le\ |
||
11 | score. |
||
12 | !set N_=!linecnt $m_context |
||
13 | |||
14 | !if $wims_read_parm iswordof form check |
||
15 | !goto $wims_read_parm |
||
16 | !endif |
||
17 | |||
18 | !if $N_<1 |
||
19 | !set error1=Il n'y a plus d'hypothèse dans l'état actuel ! |
||
20 | !endif |
||
21 | |||
22 | !exit |
||
23 | :form |
||
24 | $methhelp |
||
25 | <p> |
||
26 | Voici les hypothèses actuelles. Marquez celles que vous voulez enlever. <ul> |
||
27 | !for i=1 to $N_ |
||
28 | !set l=!line $i of $m_context |
||
5763 | bpr | 29 | <li> <input type=checkbox name=methparm1 value=$i/> \($l) |
20 | reyssat | 30 | !next i |
31 | </ul> |
||
32 | !exit |
||
33 | :check |
||
34 | !reset newobject,oldobject |
||
35 | n_=!itemcnt $methparm1 |
||
36 | !if $n_=0 |
||
37 | methexp=Etape vide |
||
38 | !exit |
||
39 | !endif |
||
40 | nc= |
||
41 | !for i=1 to $N_ |
||
42 | !if $i notitemof $methparm1 |
||
43 | l=!line $i of $m_context |
||
44 | nc=!append line $l to $nc |
||
45 | !endif |
||
46 | !next i |
||
47 | m_context=$nc |
||
48 | !read deduc/objects.combine |
||
49 | methexp=Effacer $n_ hypothèses |
||
50 | |||
51 | !exit |
||
52 |