Jeremy

I always though they should enhance the with statement with and as clause ie

if ( Components[ siCom ] is TAdoDataSet ) then
     with ( Components[ siCom ] as tAdoDataSet ) as Dataset do
     begin
       Dataset.Open;
       ...

otherwise I do

var DataSet: tAdoDataSet;

if ( Components[ siCom ] is TAdoDataSet ) then
begin
 DataSet := tAdoDataSet(( Components[ siCom ]);

 Dataset.Open;
 ...



personally I found the excessive whitespace diconcerting

N

Is it just me or is anyone else horrified by the with statement abuse in
example function getStructures?

I'm horrified by any use of the with statement.
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe



_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to