home *** CD-ROM | disk | FTP | other *** search
- SBP
- ╜ -----------------------------------------
- ╜ STKFU
- ╜ Maintain Currencies
- ╜ Last updated Sep 14, 89
- ╜ -----------------------------------------
-
- ms1$ "Is entry correct?"
- ms2$ "Continue with data entry?"
- ms3$ "Select another line?"
- Γ e: ╜ ON ERROR GOTO m99
-
- l0: ╜ Decide which type of form
- a$ "c"
- ┬"Enter choice of form","(c)olor screen-oriented or (m)onochrome report-oriented",4,a%,a$,1
- ía% 0 p wm26
- a$ =(a$)
- ía$ "c" p
- ┤ £"stku":frow% 10
- ^ ía$ "m" p
- ┤ £"stku2":frow% 20
- ^
- wl0
- Æ í
-
- m0: ╜ Display from first record
- ╔ b:lkey$ Currency.CURRENCY
- ╔ `:fkey$ Currency.CURRENCY:ckey$ fkey$
-
- m01: ╜ Display from ckey$
- vs1
-
- m1: ╜ Wait here for a push button to be clicked
- tod$ ( Q,"mmmm dd,yyyy"): ╜ should really be using FORM in SELECT statements
- £: ╧ ▀
- wm1
-
- m21: ╜ Enter new record
- ü £
- ╬
- ö2,6
- ┬ms1$,"",1,a%
- ía% 0 p
- ü £
- ^
- ╠
- ┬ms2$,"",1,a%
- ía% 1 p wm21
- Æ í
- wm0: ╜ Redisplay from first
-
- m22: ╜ Edit record
- ┬"Enter line to be edited","",4,a%,r$,2
- ía% 0 p wm222
- r% 0(r$)
- ír%
- 1 p wm22
- ír% lrec% p wm22
- ╔ £ "r%
- ckey$ Currency.CURRENCY
- ö(r% 1) 6 2
- íCurrency.CURRENCY ckey$ p wm221
- fnd% 0:skey$ Currency.CURRENCY
- vs2: ╜ if key has been edited check whether key was in use
- ífnd% 1 p wm222
- ╔ £ "r%:currency.CURRENCY skey$
-
- m221:
- ö(r% 1) 6 3,5
- ┬ms1$,"",1,a%: ía% 0 p wm223
- ╠
- íCurrency.CURRENCY ckey$ p wm222
- íckey$ fkey$ p ╔ `:fkey$ Currency.CURRENCY
- íckey$ pfkey$ p ╔ b:pfkey$ Currency.CURRENCY
- vs1: ╜ redisplay screen from ckey$
-
- m222:
- ┬ms3$,"",1,a%
- ía% 1 p wm22
-
- m223: ╜ Redisplay existing screen
- ckey$ pfkey$
- wm01
-
- m23: ╜ Delete record
- ┬"Enter line to be deleted","",4,a%,r$,2
- ía% 0 p wm1
- r% 0(r$)
- ír%
- 1 p wm23
- ír% lrec% p wm23
- ╔ £ "r%
- ckey$ Currency.CURRENCY
- vs2: ╜ checks if in use by stocks
- h4$ "Deleting line " r$
- ┬h4$,"Are you sure?",1,a%: ía% 0 p wm1
- ╔ £ "r%
- ╔ ╛
- wm0
-
- m24: ╜ Next page
- ílkey$ plkey$ p wm1
- ╔ Ñplkey$
- ╔ ▒:ckey$ Currency.CURRENCY
- wm01
-
- m25: ╜ Prev page
- ífkey$ pfkey$ p wm1
- ╔ Ñpfkey$
- ¢i% 1 qfrow%
- ╔ g
- ▒i%
- ckey$ Currency.CURRENCY
- wm01
-
- m26: ╜ Exit
- å £
- ret% 1: ä"stkm"
-
- m29: ╜ Print
- ╣ Y
- wm1
-
- s1: ╜ Displays page of records starting with ckey$
- ╜ Returns first and last keys and number of records for page
- ü £
- ╔ Ñckey$
- pfkey$ Currency.CURRENCY
- ¢i% 1 qfrow%
- ═ £ "i%
- íCurrency.CURRENCY lkey$ p ws11
- íi%
- frow% p ╔ ▒
- ▒i%
-
- s11:
- plkey$ Currency.CURRENCY
- íi% frow% 1 plrec% frow% ^lrec% i%
- ├
-
- s2: ╜ check NOT in use by stocks
- ┤ Ö"Stocks"
- ú"currency"
- ╔ Ñckey$
- í C("") p ┬"Cannot edit!","Currency in use by Stocks file",2,a%:fnd% 1
- Ö"currency"
- ├
-
- m99 : ╜ Error conditions
- í & 57 p
- ┬"Record already exists with this key","",2,a%
- ym0
- ^
- ┬ (( &),"Press OK to make another selection",1,a%
- ía% 1 p ym1
- Æ í
- ym26
-
-