Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!ncar!hsdndev!cmcl2!adm!news From: CDCKAB%EMUVM1.BITNET@cunyvm.cuny.edu ( Karl Brendel) Newsgroups: comp.lang.pascal Subject: Re: running other files? (help) Message-ID: <26311@adm.brl.mil> Date: 20 Mar 91 17:25:00 GMT Sender: news@adm.brl.mil Lines: 27 In article <1991Mar19.150541.18350@javelin.es.com>, tpehrson%javelin.es.com@BRL.MIL (Tim Clinkenpeel) wrote: >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. One or both of overlays or procedure Exec should suit your requirements. Both are available in TPas 5.0 and discussed in the manuals. Read the references to those features, and inquire again if you still have (specific) questions. You might mention what the memory requirements of the one-time and every-type programs might be, and what you want to do during the one-time program (write a config file, send the user's VISA card, modify an .EXE file, etc.). Cheers-- +--------------------------------------------------------------------+ | Karl Brendel Centers for Disease Control | | Internet: CDCKAB@EMUVM1.BITNET Epidemiology Program Office | | Bitnet: CDCKAB@EMUVM1 Atlanta GA 30093 USA | | Home of Epi Info 5.0 | +--------------------------------------------------------------------+