home *** CD-ROM | disk | FTP | other *** search
- ; Script: MKLIB.SC
- ; Version: 3.5
- ; Date: 23 March 1990
- ;
- ; This script plays each of the scripts that contain procedures used in
- ; STOCKS and creates a library of procedures. Note that we use the library
- ; name of PARADOX, which is the default autoload library.
-
- LibName = "PARADOX"
-
- IF ISFILE(LibName + ".LIB") ; Does AUTOLIB already exist?
- THEN MESSAGE LibName + ".lib already exists"
- SHOWMENU
- "No" :"Don't overwrite existing library",
- "Yes":"Overwrite existing library"
- TO Choice
- IF Choice = "No" or Choice = "Esc"
- THEN MESSAGE "Cancelling creation of "+ LibName +
- " library."
- SLEEP 1000
- QUIT ; exit the script and don't create library
- ENDIF
- ENDIF
-
- ; If we get to this point, library didn't exist, or user chose Yes.
-
- MESSAGE "Writing new " + LibName + " library."
- CREATELIB LibName
- PLAY "Board"
- WRITELIB LibName SeeBoard, ShowNSleep, SleepRefresh
- RELEASE PROCS SeeBoard, ShowNSleep, SleepRefresh
- PLAY "Ticker"
- WRITELIB LibName AddChar, TickerTape, DoTicker
- RELEASE PROCS AddChar, TickerTape, DoTicker
- PLAY "Portfol"
- WRITELIB LibName SpecificPort, SpecQuery1, AskPortName, PortMenu
- RELEASE PROCS SpecificPort, SpecQuery1, AskPortName, PortMenu
- PLAY "Holdings"
- WRITELIB LibName PortAggr, PortPric, PortSum
- RELEASE PROCS PortAggr, PortPric, PortSum
- PLAY "Graphs"
- WRITELIB LibName GraphMenu, SaveOldGraph, DoGraph, Graph1, Graph2,
- Graph3, Graph4
- RELEASE PROCS GraphMenu, SaveOldGraph, DoGraph, Graph1, Graph2, Graph3, Graph4
- PLAY "DoFeed"
- WRITELIB LibName SingleDoFeed, DoFeed, TryToInitialize, ClearBackground,
- PutMessage, ClearMessage, Startup, TestWaitForInitialize,
- TestInitialize, DoneInitialize, DoneFeed, ChangePrice
- RELEASE PROCS SingleDoFeed, DoFeed, TryToInitialize, ClearBackground,
- PutMessage, ClearMessage, Startup, TestWaitForInitialize,
- TestInitialize, DoneInitialize, DoneFeed, ChangePrice
-
- MESSAGE LibName + " library created."
-
- ; Once we've gotten this far, we can PLAY "stocks" to start application.
-
-