home *** CD-ROM | disk | FTP | other *** search
- ; SCRIPT: MKLIB.SC
- ; Version: 2.0
- ; Date: 2 May 1987
- ;
- ;
- ; 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 AUTOLIB.
-
- 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"
- THEN MESSAGE "Cancelling creation of "+LibName+" library."
- QUIT ; Exit the script and don't create library
- ENDIF
- ENDIF
-
- ; If we get to this point, library didn't exist, or user selected "YES"
-
- MESSAGE "Writing new "+LibName+" library."
- CREATELIB LibName
- PLAY "Board"
- WRITELIB LibName SeeBoard,ShowNSleep,SleepRefresh
- PLAY "Ticker"
- WRITELIB LibName AddChar,TickerTape,DoTicker
- PLAY "Portfol"
- WRITELIB LibName SpecificPort,SpecQuery1,AskPortName
- PLAY "Holdings"
- WRITELIB LibName PortAggr,PortPric,PortSum
- PLAY "DoFeed"
- WRITELIB LibName DoFeed,TryToInitialize,ClearBackground,PutMessage,
- ClearMessage,Startup,TestWaitForInitialize,
- TestInitialize,DoneInitialize,DoneFeed
- MESSAGE LibName+" library created."
-
- ; Once we've gotten this far, we can PLAY "stocks" to start application