Subject | Re[2]: [IBO] Questions of style, slightly off topic. |
---|---|
Author | Carlos H. Cantu |
Post date | 2001-01-25T19:11:17Z |
If I remember correctly this is the "slowest" method to access a field... I
think it is because the value is accessed as a variant (variant = extra
work :).
[]s
Carlos
WarmBoot Informatica - http://www.warmboot.com.br
Interbase-BR - http://www.interbase-br.com
PG> I usually use this method. It works in almost all situations.
PG> IB_Query1['FIELDNAME']
PG> Paul Gallagher
PG> ----- Original Message -----
PG> From: "Joseph Carney" <jcarney@...>
PG> To: <IBObjects@egroups.com>
PG> Sent: Thursday, January 25, 2001 8:46 AM
PG> Subject: [IBO] Questions of style, slightly off topic.
think it is because the value is accessed as a variant (variant = extra
work :).
[]s
Carlos
WarmBoot Informatica - http://www.warmboot.com.br
Interbase-BR - http://www.interbase-br.com
PG> I usually use this method. It works in almost all situations.
PG> IB_Query1['FIELDNAME']
PG> Paul Gallagher
PG> ----- Original Message -----
PG> From: "Joseph Carney" <jcarney@...>
PG> To: <IBObjects@egroups.com>
PG> Sent: Thursday, January 25, 2001 8:46 AM
PG> Subject: [IBO] Questions of style, slightly off topic.
>> I am currently in a discussion with another programmer about coding style,PG> reference
>> with each of us
>> having different opinions.
>>
>> Normally when I am referencing either an IBOQuery or a IB_Query I
>> with:PG> execution
>> 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
>> speed?
>> Is the extra typing worth it?
>>
>> Just trying to settle a friendly difference of opinion.
>>
>>
>> Joe Carney
>> West Palm Beach, FL
>> jcarney@...
>>
>>
>>
>>
>>