<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Hi All,</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">
Is it possible to optionally use a unit? e.g.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">unit myunit;</div><div class="gmail_default" style="font-family:courier new,monospace">
uses {$ifexists persist.pas}persist,{$endif} Classes;</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">type</div><div class="gmail_default" style="font-family:courier new,monospace">
TMyClass = class</div><div class="gmail_default" style="font-family:courier new,monospace"> public</div><div class="gmail_default" style="font-family:courier new,monospace"> {$ifexists persist.pas}</div><div class="gmail_default" style="font-family:courier new,monospace">
procedure SaveToStream(s: TStream);</div><div class="gmail_default" style="font-family:courier new,monospace"> {$endif}</div><div class="gmail_default" style="font-family:courier new,monospace"> end;</div><div class="gmail_default" style="font-family:courier new,monospace">
<br></div><div class="gmail_default" style="font-family:courier new,monospace">Thanks,</div><div class="gmail_default" style="font-family:courier new,monospace">Xiangrong</div></div>