Board index » delphi » units

units

Quote
> i want to make units out of these .pas files that i have but i have no
> idea how to make them, any help would be appreciated

   I suggest you look at the documentation on Units - the manuals which
came with your package, any after-market texts you've acquired, etc.  
Then, if you have problems with them not working as you wish, post a
specific question with supporting snippets of what you've tried/done.
   The documentation in the Borland manuals has been adequate for most of
us - what's doesn't make sense?
 

Re:units


Quote
_someone_ wrote:
> i want to make units out of these .pas files that i have but i have no
> idea how to make them, any help would be appreciated

First you have to format the source code so that it
has a structure acceptable for compilation as a unit.

Once you've done that, you have to run it through a
Pascal compiler that supports a UNIT object-file
format, such as Turbo Pascal 4, 5, 6 or Borland
Pascal 7 of Delphi.

Other Pascal compilers can also generate proprietary
object files, and some can generate standard .OBJ
object files.

Regards,
Brian.

--
HARVESTER CONTROL: Our real email address is corbin->mail<-rmin<-net
                   if you replace '->' with '@' and '<-' with '.'

Corbin Network Services
Box 1960, Sparwood, BC, Canada
Vox: 250.425.7471
Fax: 250.425.7472
Brian Grainger, Owner

Member, Canadian Association of Internet Providers
Network operations, consulting, programming, and training

Re:units


i want to make units out of these .pas files that i have but i have no
idea how to make them, any help would be appreciated

Re:units


Quote
In article <339621b3.2487...@news.hom.net>, _someone_ <some...@some.net> wrote:

:i want to make units out of these .pas files that i have but i have no
:idea how to make them, any help would be appreciated

See your Turbo Pascal manuals and see

 113827 Feb 5 1997 ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip
 tsfaqp.zip Common Turbo Pascal Questions and Timo's answers

 320779 Oct 19 1992 ftp://garbo.uwasa.fi/pc/turbopas/tpr-book.zip
 tpr-book.zip Electronic Turbo Pascal Reference freeware book, E.Mitchell

 157497 Mar 26 1996 ftp://garbo.uwasa.fi/pc/turbopas/tptutr11.zip
 tptutr11.zip ASCII-text Turbo Pascal Tutor 1-22, G.Grotzinger, useful

   All the best, Timo

....................................................................
Prof. Timo Salmi   Co-moderator of news:comp.archives.msdos.announce
Moderating at ftp:// & http://garbo.uwasa.fi archives  193.166.120.5
Department of Accounting and Business Finance  ; University of Vaasa
mailto:t...@uwasa.fi  <URL:http://uwasa.fi/~ts>  ; FIN-65101,  Finland

Re:units


Quote
_someone_ wrote:

> i want to make units out of these .pas files that i have but i have no
> idea how to make them, any help would be appreciated

I asume that you know the format for a Unit, if not look up the manual
if you don't have a manual, stop ussing priate software. Goto the
compile menu & select destination, it should now have changed to disk.
When you next compile your unit, a file called unitname.tpu will be
sitting in your unit & exec folder, you can now decalre that unit in
your usses clause. Have fun & don't buy MicroSoft software. BG is
satan...

Other Threads