0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
if ((DBPipeline['smoking_type_id'] = '1') or (DBPipeline['smoking_type_id'] = '4'))and (DBPipeline['drinking_type_id'] = '1') then begin CheckBox7.checked:=true; CheckBox8.checked:=false; end else begin CheckBox7.checked:=false; CheckBox8.checked:=true; end;แบบนีได้มั้ยครับ
if ((DBPipeline['smoking_type_id'] = '1') or (DBPipeline['smoking_type_id'] = '4') or (DBPipeline['smoking_type_id'] = ''))and ((DBPipeline['drinking_type_id'] = '1') or (DBPipeline['smoking_type_id'] = '')) then begin CheckBox7.checked:=true; CheckBox8.checked:=false; end else begin CheckBox7.checked:=false; CheckBox8.checked:=true; end;