น่าจะเป็นถ้าต้องการเงื่อนไข หลาย ๆ ตัวล่ะครับ เช่น "%ให้ทานยา%" หรือ "%ให้ ทานยา%" และ"%ส่ง ER%"โค๊ด: Delphi
If getsqlintegerdata('select count(vn) as cc from opdscreen where hpi like "%ให้ทานยา%" and vn="'+dbpipeline['vn']+'" ')>0 then CheckBox1.checked:=false else CheckBox1.checked:=true; end;
อีกแบบที่น่าจะได้
If (pos('ทานยา',DBPipeline['hpi'])>0 and pos('ส่งตัวไปER',DBPipeline['hpi'])>0) then
CheckBox1.checked:=false
else
CheckBox1.checked:=true;
end;
Error นี้แก้ไขอย่างไรครับ
น่าจะเป็นถ้าต้องการเงื่อนไข หลาย ๆ ตัวล่ะครับ เช่น "%ให้ทานยา%" หรือ "%ให้ ทานยา%" และ"%ส่ง ER%"โค๊ด: Delphi
If getsqlintegerdata('select count(vn) as cc from opdscreen where hpi like "%ให้ทานยา%" and vn="'+dbpipeline['vn']+'" ')>0 then CheckBox1.checked:=false else CheckBox1.checked:=true; end;
Error นี้แก้ไขอย่างไรครับ
(ลืมแนบไฟล์)
Error นี้แก้ไขอย่างไรครับ
(ลืมแนบไฟล์)
เอา code ไปใส่ไว้ที่ไหน ใช่อันนี้ไหมครับ