Subject | Equivalent loop over all fields for all records: IB_Query/TQuery |
---|---|
Author | Raymond Kennington |
Post date | 2003-01-16T23:31:19Z |
If one defines TFields for a TQuery one can iterate over all visible fields in
sequence within all records as follows:
with Query do
begin
First();
while not EOF do
begin
for c := 0 to Pred(Fields.Count) do
begin
ShowMessage(Fields[i].AsString);
end;
Next();
end;
end;
One also has access to the format and alignment attributes of Fields[i].
What is the equivalent for TIB_Query?
TIA
--
Raymond Kennington
Programming Solutions
W2W Team B
sequence within all records as follows:
with Query do
begin
First();
while not EOF do
begin
for c := 0 to Pred(Fields.Count) do
begin
ShowMessage(Fields[i].AsString);
end;
Next();
end;
end;
One also has access to the format and alignment attributes of Fields[i].
What is the equivalent for TIB_Query?
TIA
--
Raymond Kennington
Programming Solutions
W2W Team B