Project

General

Profile

run_batch.p

Constantin Asofiei, 02/11/2014 06:15 AM

Download (1.61 KB)

 
1
procedure showError.
2
  def input parameter ch as char.
3
  def input parameter b as log.
4
   if not b then do: message "skipping" ch. return. end.
5
  message "starting" ch.
6
  do on error undo,leave:
7
    do on quit undo, leave:
8
      do on stop undo, leave:
9
          run value("batch_test" + ch + ".p").
10
          message "no stop".
11
      end.
12
      message "no quit".
13
    end.
14
     message "no error".
15
  end.
16
  message "done" ch.
17
  if error-status:error or error-status:num-messages > 0
18
then message error-status:error error-status:num-messages error-status:get-message(1).
19
end.
20

    
21
run showError("00", yes).
22
run showError("01", yes).
23
run showError("02", yes).
24
run showError("1r1", yes ).
25
run showError("0", no).
26
run showError("1", yes).
27
run showError("2", yes).
28
run showError("3", yes).
29
run showError("4", yes).
30
run showError("5", yes).
31
run showError("6", yes).
32
run showError("7", yes).
33
run showError("8", yes).
34
run showError("9", yes).
35
run showError("10", yes).
36
run showError("11", yes).
37
run showError("12", yes).
38
run showError("13", yes).
39
run showError("14", yes).
40
run showError("15", yes).
41
run showError("16", yes).
42
run showError("17", yes).
43
run showError("18", yes).
44
run showError("19", yes).
45
run showError("20", yes).
46
run showError("21", yes).
47
run showError("22", yes).
48
run showError("0_1", yes).
49
run showError("1_1", yes).
50
run showError("2_1", yes).
51
run showError("3_1", yes).
52
run showError("4_1", yes).
53
run showError("5_1", yes).
54
run showError("6_1", yes).
55
run showError("7_1", yes).
56
run showError("8_1", yes).
57
run showError("9_1", yes).
58
run showError("10_1", yes).
59
run showError("13_1", yes).
60
run showError("14_1", yes).
61
run showError("16_1", yes).