-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixbinloc.prg
46 lines (37 loc) · 849 Bytes
/
fixbinloc.prg
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
*
* Fix Kahlo Jeep Web1000 Bin Locations.
*
*
CLOSE DATABASES ALL
SET EXCLUSIVE OFF
SET SAFETY OFF
*SET DEFAULT TO "N:\Apps\acss"
_VFP.CAPTION = "Fix Kahlo Jeep Web1000 Bin Locations"
PRIVATE ibin
ibin = 0
SELECT 0
USE "C:\ACS\initdata\invbin01" SHARED ALIAS pb01
SELECT 0
USE "N:\APPS\ACSS\pmast0b" SHARED ALIAS p01
INDEX ON ALLTRIM(pm_part) TO l
SET ORDER TO l
GO TOP
@04,2 SAY "This program will fix the Web1000 bin locations "
@05,2 SAY "for Kahlo Jeep. "
@06,2 SAY "Press [ESC] to quit. "
@10,2 SAY "Bin Loc. (UPD) = "
DO WHILE !EOF()
SELECT p01
SEEK ALLTRIM(pb01.pm_part)
IF FOUND()
REPLACE p01.pm_locat WITH pb01.pm_locat
ibin = ibin + 1
@10,23 SAY ibin
ENDIF
SELECT pb01
SKIP
ENDDO
@13,2 SAY "The operation(s) is completed."
INKEY(5)
CLOSE DATABASES ALL
RETURN