Subject data access by FieldByName or []
Author stanw1950
I have seen at least two different ways to access data -

String := Query['FieldName'];
String := Query.FieldByName('FieldName').AsString;

Are these equivalent? Is one better than the other? Thanks.