<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">Le 07/08/2013 13:38, Richard Mace a
écrit :<br>
</div>
<blockquote
cite="mid:CAK+KT38st_G4r8VriYd9LObgXiWFZCMRSk9uKoDgs3rW4O++4A@mail.gmail.com"
type="cite">
<p dir="ltr">Thanks for the reply. <br>
In Lazarus, how do you include the unit? </p>
</blockquote>
Very simple: open the project option (Ctrl+F11), look in COmpiler
Options then Paths. Fill in Other unit files as appropriate.<br>
Have a look into <a
href="http://wiki.freepascal.org/IDE_Window:_Project_Options">http://wiki.freepascal.org/IDE_Window:_Project_Options</a><br>
<br>
Antonio.<br>
<blockquote
cite="mid:CAK+KT38st_G4r8VriYd9LObgXiWFZCMRSk9uKoDgs3rW4O++4A@mail.gmail.com"
type="cite">
<div class="gmail_quote">On 7 Aug 2013 08:53, "Antonio Fortuny"
<<a moz-do-not-send="true"
href="mailto:a.fortuny@sitasoftware.lu">a.fortuny@sitasoftware.lu</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Le 07/08/2013 07:29, Richard Mace a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
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?<br>
<br>
Hope that makes sense?<br>
</blockquote>
Definitely yes. I'm used to create as much as needed source
lib folders to store units common to more than one project.
Folder's hierarchy depends on projects hierarchy. For example:<br>
root<br>
lib<br>
group1<br>
lib1<br>
project1<br>
project2<br>
group2<br>
lib2<br>
project3<br>
project4<br>
<br>
projects 1 & 2 share untils in lib1. Same for projects 3
& 4 with lib2<br>
But project 4 and project1 can share units within lib.<br>
When importing a unit in a project from a foilder ouside of
the project's one, Lazarus proposes to insert the new source
folder into the project's search path. So it's very easy.<br>
<br>
Antonio.<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks<br>
<br>
Richard<br>
<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a moz-do-not-send="true"
href="mailto:Lazarus@lists.lazarus.freepascal.org"
target="_blank">Lazarus@lists.lazarus.freepascal.org</a><br>
<a moz-do-not-send="true"
href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus"
target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</blockquote>
<br>
<br>
<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a moz-do-not-send="true"
href="mailto:Lazarus@lists.lazarus.freepascal.org"
target="_blank">Lazarus@lists.lazarus.freepascal.org</a><br>
<a moz-do-not-send="true"
href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus"
target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</blockquote>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<table
style="font-family:'Calibri','sans-serif';font-size:8.0pt;color:#002f87;border:0;width:auto;">
<tbody>
<tr>
<td style="vertical-align:bottom;padding:40px 20px
25px;border-top:1pt solid #BFBFBF;"> <img alt="Sita
Software"
src="cid:part7.00080201.05050606@sitasoftware.lu"> </td>
</tr>
<tr>
<td style="vertical-align: top; padding: 5px 20px 0;"> <b>Antonio
Fortuny</b><br>
Senior Software engineer<br>
<br>
220, avenue de la Liberté<br>
L-4602 Niederkorn<br>
Tel.: +352 58 00 93 - 93<br>
<a style="color:#002f87;cursor:pointer;text-decoration:
none;" href="http://www.sitasoftware.lu">www.sitasoftware.lu</a><br>
</td>
</tr>
<tr>
<td style="padding:20px 20px 30px;border-bottom: 1pt solid
#BFBFBF;" align="right"> <img alt="Your IT Partner"
src="cid:part9.04040003.05080102@sitasoftware.lu"> </td>
</tr>
</tbody>
</table>
</div>
</body>
</html>