เจอแบบนี้...งง
...มาแล้ว
procedure DBText11OnGetText(var Text: String);
begin
If DBPipeline['range_check'] = 'Y' then
If DBPipeline['result_type'] = 1 then
Text := ''
else
If DBPipeline['result_type'] = 0 then
begin
case DBPipeline['sex'] of
1: If DBPipeline['lab_order_result'] < DBPipeline['range_check_min'] then
Text := 'L'
else
If DBPipeline['lab_order_result'] > DBPipeline['range_check_max'] then
Text := 'H'
else
Text := '';
2: If DBPipeline['lab_order_result'] < DBPipeline['range_check_min_female'] then
Text := 'L'
else
If DBPipeline['lab_order_result'] > DBPipeline['range_check_max_female'] then
Text := 'H'
else
Text := '';
end; {end of case}
end {end of begin}
else
Text := '';
end;