You are not logged in.
Pages: 1
I cannot find on TSQLTable object a mothod to get fields name, something like TSQLTable.GetFieldName(id: Integer);
Is there it?
Offline
OK thanks
Offline
Small example:
First one (Get*) returns name of column (fetching first 0 indexed row, data is from 1 on).
Second one first un-camels name and potentially gets localized version of that text, if you use SQLite3i18n unit.
var
table: TSQLTable;
i: integer;
(...)
for i := 0 to table.FieldCount - 1 do
begin
writeln('col '+IntToStr(i)+' has name '+string(table.GetS(0,i)));
writeln('col '+IntToStr(i)+' has caption '+table.GetCaption(0,i));
end;
(...)
Last edited by Leander007 (2012-01-06 23:21:28)
"Uncertainty in science: There no doubt exist natural laws, but once this fine reason of ours was corrupted, it corrupted everything.", Blaise Pascal
Offline
Pages: 1