[Lazarus] Including and existing unit

Andrew Brunner atbrunner at aurawin.com
Wed Aug 7 15:07:18 CEST 2013


It's all about object inheritance.  You would just create your objects 
in a unit file.  Have all the methods organized as a TObject.  Then you 
just create an instance and use it.

Forms have inheritance too.  You can create an instance of a particular 
form.  But the principal is the same.

To include the file to use it ... Add the unit file to the uses section 
of the unit.

On 8/7/2013 12:29 AM, Richard Mace wrote:
> Hi All,
> I am writing to similar applications, and want the "child" app to use 
> some of the units of the parent app. If the units for the child app 
> are in a different directory from the parent app, what's the best way 
> of using an "include" in the child app?
>
> Hope that makes sense?
>
> Thanks
>
> Richard
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


-- 
Andrew Brunner

Aurawin LLC
19309 Stage Line Trail
Pflugerville, TX 78660

https://aurawin.com/

Aurawin is a great new way to store, share, and explore all your content
featuring our innovative cloud social computing platform.





More information about the Lazarus mailing list