In D7, the following pervasive sql statement returns the result multiple times. Why? Thanks.
JimR
procedure ShowContracts;
var
L : string;
begin
L := form1.tbCLient.FieldByName('ClientNumber').asString;
form1.PvSQLSession1.ServerName := 'Btrieve';
form1.PvQuery1.DatabaseName := 'LPV8OE';
form1.PvQuery1.SQL.Add ('select clientnumber, pubNumber, classcode, contractnumber, zone from contracts');
form1.PvQuery1.SQL.Add (' where clientnumber = ' + quotedstr(L));
form1.PvQuery1.SQL.Add ('order by clientnumber,pubnumber,contractnumber');
form1.PvQuery1.Active := true;
end;
JimR
procedure ShowContracts;
var
L : string;
begin
L := form1.tbCLient.FieldByName('ClientNumber').asString;
form1.PvSQLSession1.ServerName := 'Btrieve';
form1.PvQuery1.DatabaseName := 'LPV8OE';
form1.PvQuery1.SQL.Add ('select clientnumber, pubNumber, classcode, contractnumber, zone from contracts');
form1.PvQuery1.SQL.Add (' where clientnumber = ' + quotedstr(L));
form1.PvQuery1.SQL.Add ('order by clientnumber,pubnumber,contractnumber');
form1.PvQuery1.Active := true;
end;