Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ns.uoregon.edu!milton!uw-beaver!ubc-cs!alberta!herald.usask.ca!news From: reeves@dvinci (Malcolm Reeves) Newsgroups: comp.lang.pascal Subject: Re: running other files? (help) Message-ID: <1991Mar20.045708.26381@herald.usask.ca> Date: 20 Mar 91 04:57:08 GMT References: <1991Mar19.150541.18350@javelin.es.com> Sender: news@herald.usask.ca (USENET News System) Reply-To: reeves@dvinci Organization: University of Saskatchewan Lines: 19 Nntp-Posting-Host: dvinci.usask.ca From article <1991Mar19.150541.18350@javelin.es.com>, by tpehrson@javelin.es.com (Tim Clinkenpeel): > hi. i'm programming in turbo 5.0 and was wondering if it is possible/efficient > to run other files from my program. here's the scenario: i have a large piece > of code that will only be used the first time a new user runs the program. > can i separate it out and only call it when needed to save space and memory? > include {$i } doesn't seem to be what i want; i'm talking run-this, exit-and- > run-this-other-one, exit-second-and-back-to-first. > What you need is the TP5.0 Exec procedure: SwapVectors; Exec(MyProgram,MyCommandLine); SwapVectors; MyProgram, MyCommandLine are String types. It appears that pages 264 and 265 of the copy of the TurboPascal Reference Guide you received when you purchased the compiler are missing? You should perhaps complain to Borland about this oversight :-)