r_UPT := GetSQLSubQueryData('select lab_order_result from lab_order lo join lab_head lh on lh.lab_order_number = lo.lab_order_number where lo.lab_items_code="40" and lh.vn="'+DBPipeline['vn']+'"');
r_UPT := StringReplace(r_UPT,chr(39),'',rfReplaceAll, rfIgnoreCase);
If r_UPT = '""' then
begin
lblUPT_N.visible := false;
lblUPT_P.visible := false;
end;
If r_UPT = 'Negative' then
begin
lblUPT_N.visible := true;
lblUPT_P.visible := false;
end;
If r_UPT = 'Positive' then
begin
lblUPT_N.visible := false;
lblUPT_P.visible := true;
end;
Compile ไม่ผ่านครับ ติด Undeclared identifier : 'StringReplace'