Hi,

I have code like:

procedure CloseDataAccess;
begin
 self.sqltransaction1.active:=False;
end;

in each form (might have 20 forms).  

Or is it better (what a word):

sqlunit

procedute CloseDataAccess(sender:tsqltransaction);
begin
sender.active:=False;
end;

And call the CloseDataAccess for each form.

It would seem that the compiler would have only one routine in memory if I 
used the 'sqlunit'.  But what does it save?  

John

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to