Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
sunbelt-plb-samples/legacy_demo/chkact.inc at main · KcsDev1982/sunbelt-plb-samples · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
KcsDev1982
/
sunbelt-plb-samples
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
5
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
sunbelt-plb-samples
/
legacy_demo
/
chkact.inc
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
198 lines (185 loc) · 7.33 KB
main
Breadcrumbs
sunbelt-plb-samples
/
legacy_demo
/
chkact.inc
Copy path
Top
File metadata and controls
Code
Blame
198 lines (185 loc) · 7.33 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
*********************************************
. Multiple Account Management
.
.
**
declaired
in
form
***
.AcntLst
.EdtAcntName
.AcntRmBtn
.
**********************
*
.Accounts record len
=
50
.
acnt RECORD
desc
DIM
40
num FORM
2
Balance FORM
5
.
2
RECORDEND
. shhh....don
'
t tell eanybody we are maintinging keys for multiple columns
. in a single isi file...:)
. this is a hackers approach to a problem...beginners better off using aam...
acntnumkey DIM 2
. I elecited to take this approach because the most number of records
. this file will ever have is 100 with a record size of 50...
. this comes out to 5000 bytes max...aamdex files start at 64k in size
. and the isi file even with multiple column keys won
'
t get that large.
. A second isi file gives
and
extra
1500
byte overhead
and
not necesary
. for our purpose.... Dont try this at home kids...It works here because the
. account
desc
and
the account num are different
and
should never intersect
.
#
NxtAcnt FORM 2
#
d10 DIM ^10
#
d40 DIM ^40
#
d402 DIM ^40
#
f4 FORM 4
#
f2 FORM 2
#
MOD FORM 1
accounts IFILE Nodup,
UPPER
StartAcct
CLEAR ftrap
TRAP noFile IF IO
OPEN accounts,Accnts
IF (ftrap)
PREP accounts,Accnts,Accnts,
"
1-40
"
,
"
50
"
MOVE
"
default
"
,
acnt
.
desc
CLEAR
acnt
.
num
WRITE accounts;acnt
MOVE
acnt
.
num
,acntnumkey
INSERT accounts,acntnumkey
ENDIF
TRAPCLR IO
CALL LoadAcct
SETITEM ActvAcntBox,
1
,
1
RETURN
AcntAdd
GETITEM EdtAcntName,
0
,
#
d40
CHOP
#
d40,#d40
RETURN IF (
#
d40="")
MOVE
#
d40,acnt.desc
MOVE
#
nxtAcnt,acnt.num
TRAP werror IF IO
WRITE accounts,
#
d40;acnt
MOVE
acnt
.
num
,acntnumkey
INSERT accounts,acntnumkey
TRAPCLR IO
AcntLst
.
AddString
USING
#
d40
INSERTITEM ActvAcntBox,
99
,
acnt
.
desc
CLEAR
#
d40
SETITEM EdtAcntName,
0
,
#
d40
RETURN
werror
NORETURN
ALERT note,
"
Duplicates not allowed or write error
"
,
#
f4,#d40
RETURN
AcntRm
IF (
#
MOD)
CALL AcntCnl
RETURN
ENDIF
AcntLst
.
GetCaretIndex
GIVING
#
f4
AcntLst
.
GetText
GIVING
#
d40 USING #f4
CHOP
#
d40,#d40
READ accounts,
#
d40;acnt
MOVE
acnt
.
num
,acntnumkey
DELETEK accounts,acntnumkey
DELETE
accounts
AcntLst
.
DeleteString
USING
#
f4
AcntLst
.
SetCurSel
USING
#
f4
. CALL ComboSrch USING ActvAcntBox,
#
d40,#f4
ActvAcntBox
.
FindString
GIVING
#
f4 USING #d40,seq
. INCR
#
f4 ;. 24 Oct 2006
ActvAcntBox
.
GetCurSel
GIVING
#
f2
. INCR
#
f2 ;. 24 Oct 2006
IF (
#
f2 = #f4 )
IF (
#
f2 != "1" )
ActvAcntBox
.
SetCurSel
USING
0
ELSE
ActvAcntBox
.
SetCurSel
USING
1
ENDIF
ENDIF
ActvAcntBox
.
DeleteString
USING
#
f4 ;. 24 Oct 2006
IF (
#
f2 = #f4 )
CALL ChngActvAccnt
ENDIF
RETURN
AcntSMod
SET
#
MOD
CALL CatCnl
CALL ModDbtCnl
AcntLst
.
GetCaretIndex
GIVING
#
f4
AcntLst
.
GetText
GIVING
#
d40 USING #f4
CHOP
#
d40,#d40
SETITEM EdtAcntName,
0
,
#
d40
READ accounts,
#
d40;acnt
SETPROP AcntLst,ENABLED
=
0
SETPROP acntMod,ENABLED
=
1
MOVE
"
&Cancel
"
,
#
d10
SETITEM AcntRmBtn,
0
,
#
d10
RETURN
AcntMod
GETITEM EdtAcntName,
0
,
#
d40
CHOP
#
d40,#d40
RETURN IF (
#
d40="")
MOVE
acnt
.
desc
,
#
d402
DELETEK accounts,
#
d402
AcntLst
.
GetCaretIndex
GIVING
#
f4
AcntLst
.
DeleteString
USING
#
f4
AcntLst
.
InsertString
USING
#
d40,#f4
MOVE
#
d40,acnt.desc
INSERT accounts,
#
d40
UPDATE
accounts;acnt
AcntCnl
CLEAR
#
d40
SETITEM EdtAcntName,
0
,
#
d40
MOVE
"
&Remove
"
,
#
d10
SETITEM AcntRmBtn,
0
,
#
d10
SETPROP AcntLst,ENABLED
=
1
SETPROP acntMod,ENABLED
=
0
CLEAR
#
MOD
RETURN
LoadAcct
CLEAR
#
NxtAcnt
REPOSIT accounts,ZERO
TRAP nothing noreset IF IO ;just read passed deleted records
LOOP
READ accounts,seq;acnt
BREAK IF OVER
IF (
acnt
.
num
=
#
NxtAcnt)
INCR
#
NxtAcnt
ENDIF
CHOP
acnt
.
desc
AcntLst
.
AddString
USING
acnt
.
desc
INSERTITEM ActvAcntBox,
99
,
acnt
.
desc
REPEAT
CLEAR
acnt
.
num
PACK actAcntkey,
"
06x
"
,
acnt
.
num
RETURN
ChngActvAccnt
GETITEM ActvAcntBox,
0
,
#
f4
GETITEM ActvAcntBox,
#
f4,d40
CHOP d40,d40
chkbk
.
DeleteAllItems
READ accounts,d40;acnt
RETURN IF OVER
PACK actAcntkey,
"
06x
"
,
acnt
.
num
CLEAR bnkbal
CALL LoadTrns
MOVE bnkbal,d10
SETITEM EdtBankBal,
0
,d10
RETURN
acntno FORM
2
newbal FORM ^
UpdateBalance ROUTINE acntno,newbal
MOVE acntno,acntnumkey
READ accounts,acntnumkey;acnt
MOVE newbal,
acnt
.
Balance
UPDATE
accounts;acnt
RETURN
dimp DIM ^
CheckBalance ROUTINE dimp,newbal
READ accounts,dimp;acnt
MOVE
acnt
.
Balance
,newbal
RETURN
GetAcntNum ROUTINE dimp,newbal
READ accounts,dimp;acnt
MOVE
acnt
.
num
,newbal
RETURN
You can’t perform that action at this time.