-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathControl.clw
executable file
·71 lines (53 loc) · 2.46 KB
/
Control.clw
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
PROGRAM
INCLUDE('ABERROR.INC'),ONCE
INCLUDE('ABUTIL.INC'),ONCE
INCLUDE('ERRORS.CLW'),ONCE
INCLUDE('KEYCODES.CLW'),ONCE
INCLUDE('ABFUZZY.INC'),ONCE
MAP
MODULE('CONTROL_BC.CLW')
DctInit PROCEDURE ! Initializes the dictionary definition module
DctKill PROCEDURE ! Kills the dictionary definition module
END
!--- Application Global and Exported Procedure Definitions --------------------------------------------
MODULE('CONTROL001.CLW')
Main PROCEDURE !Window
END
END
SilentRunning BYTE(0) ! Set true when application is running in 'silent mode'
!region File Declaration
!endregion
TIME:Second EQUATE(100)
TIME:Minute EQUATE(60 * TIME:Second)
TIME:Hour EQUATE(60 * TIME:Minute)
TIME:Day EQUATE(24 * TIME:Hour )
FuzzyMatcher FuzzyClass ! Global fuzzy matcher
GlobalErrorStatus ErrorStatusClass,THREAD
GlobalErrors ErrorClass ! Global error manager
INIMgr INIClass ! Global non-volatile storage manager
GlobalRequest BYTE(0),THREAD ! Set when a browse calls a form, to let it know action to perform
GlobalResponse BYTE(0),THREAD ! Set to the response from the form
VCRRequest LONG(0),THREAD ! Set to the request from the VCR buttons
Dictionary CLASS,THREAD
Construct PROCEDURE
Destruct PROCEDURE
END
CODE
GlobalErrors.Init(GlobalErrorStatus)
FuzzyMatcher.Init ! Initilaize the browse 'fuzzy matcher'
FuzzyMatcher.SetOption(MatchOption:NoCase, 1) ! Configure case matching
FuzzyMatcher.SetOption(MatchOption:WordOnly, 0) ! Configure 'word only' matching
INIMgr.Init('.\Control.INI', NVD_INI) ! Configure INIManager to use INI file
DctInit()
Main
INIMgr.Update
INIMgr.Kill ! Destroy INI manager
FuzzyMatcher.Kill ! Destroy fuzzy matcher
Dictionary.Construct PROCEDURE
CODE
IF THREAD()<>1
DctInit()
END
Dictionary.Destruct PROCEDURE
CODE
DctKill()