procedure MainForm.FormShow(Sender: TObject);
var
opdscreen_cds: TClientDataSet;
cds:Tclientdataset;
begin
fvn := trim(Getglobalvalue('VN'));
fptname := getsqldata('select concat(p.pname,p.fname," ",p.lname) '+
' as name '+
' from patient p '+
' left outer join ovst o on o.hn = p.hn '+
' where o.vn ="'+fvn+'" ');
ptname.text := fptname;
ptname1.caption := fptname;
opdscreen_cds.data := HOSxP_GetDataSet('select * from opdscreen where vn = "'+fvn+'" ');
txtfbs.text :=opdscreen_cds['fbs'].value;
end;
แล้วขึ้น error ว่า Record, object or class type required. แก้ไขอย่างไรครับ