Subject | Re: [IBO] data access by FieldByName or [] |
---|---|
Author | Jason Wharton |
Post date | 2002-01-11T21:39:14Z |
> I have seen at least two different ways to access data -They are not equivalent.
>
> String := Query['FieldName'];
> String := Query.FieldByName('FieldName').AsString;
>
> Are these equivalent? Is one better than the other? Thanks.
One returns a variant and the other a string.
The biggest difference is how NULLs will impact you.
It's your preference.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com