-
Notifications
You must be signed in to change notification settings - Fork 0
/
CRDTE_Fix.txt
30 lines (26 loc) · 950 Bytes
/
CRDTE_Fix.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
DO CASE
CASE FOUND() .AND. EMPTY(cus.cm_crdte) .AND. EMPTY(veh.vi_dsld) .AND. !EMPTY(veh.vi_darv)
REPLACE cus.cm_crdte WITH veh.vi_darv
ival = ival + 1
@10,23 SAY ival
CASE FOUND() .AND. EMPTY(cus.cm_crdte) .AND. !EMPTY(veh.vi_dsld) .AND. EMPTY(veh.vi_darv)
REPLACE cus.cm_crdte WITH veh.vi_dsld
ival = ival + 1
@10,23 SAY ival
CASE FOUND() .AND. EMPTY(cus.cm_crdte) .AND. !EMPTY(veh.vi_darv) .AND. !EMPTY(veh.vi_dsld)
REPLACE cus.cm_crdte WITH veh.vi_dsld
ival = ival + 1
@10,23 SAY ival
CASE FOUND() .AND. EMPTY(cus.cm_crdte) .AND. EMPTY(veh.vi_darv) .AND. EMPTY(veh.vi_dsld)
REPLACE cus.cm_crdte WITH DATE()
ival = ival + 1
@10,23 SAY ival
CASE !FOUND() .AND. EMPTY(cus.cm_crdte)
REPLACE cus.cm_crdte WITH DATE()
ival = ival + 1
@10,23 SAY ival
*!* OTHERWISE
*!* REPLACE cus.cm_crdte WITH DATE() FOR EMPTY(cus.cm_crdte)
*!* ival = ival + 1
*!* @10,23 SAY ival
ENDCASE