You are not logged in.
Pages: 1
procedure TForm1.LoadPersonList;
var
PersonRec : TSQLPersonRecord;
begin
PersonRec:=TSQLPersonRecord.Create(Database,'Name>""',[]);
Try
if PersonRec.ID = 0 then
Exit;
Repeat
ListBox1.Items.Append(UTF8ToString(PersonRec.Name));
until not PersonRec.FillOne;
Finally
PersonRec.Free;
End;
end;
This code is not working. I know there are multiple records in the table but only the first record comes up.
What am I doing wrong? :-)
Many thanks.
Last edited by JonG (2010-11-18 05:46:49)
Offline
You need to use TSQLTableJSON to retrieve multiple records, then FillOne/FillPrepare.
See http://synopse.info/forum/viewtopic.php?pid=729#p729 for an example.
Offline
Pages: 1