Subject Re: [IBO] Questions of style, slightly off topic.
Author Jason Wharton
They are equivalent. One of them is included just for compatibility sake.

I think it is preferable to code using query.FieldByName() because it is
cleaner in the code.

I say get out the gloves and duke it out!

Cheers,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Joseph Carney" <jcarney@...>
To: <IBObjects@egroups.com>
Sent: Thursday, January 25, 2001 7:46 AM
Subject: [IBO] Questions of style, slightly off topic.


> I am currently in a discussion with another programmer about coding style,
> with each of us
> having different opinions.
>
> Normally when I am referencing either an IBOQuery or a IB_Query I
reference
> with:
> query.fieldbyname('fieldname').AsString.....
> My compatriot seems to prefer:
> query.Fields.FieldByName('fieldname').AsString...
>
> My question is, which method is more efficient in terms of runtime
execution
> speed?
> Is the extra typing worth it?
>
> Just trying to settle a friendly difference of opinion.
>
>
> Joe Carney
> West Palm Beach, FL
> jcarney@...
>
>
>
>