BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: krathokman ที่ กรกฎาคม 17, 2012, 12:20:14 PM
-
ตามรูป เวลา printe ออกมามันออกวันที่ 30/12/2542 ไม่รู้ไปเอามาจากไหน
แต่ถ้า user .ใส่ค่าวันที่ลงไป ก็ออกถูก
แต่ถ้าไม่มีข้อมูลมันออกวันที่ 30/12/2542 ทุกที ผมต้องการให้มันเป็นค่าว่างถ้าไม่มีข้อมูลทำอย่างไรครับ
variable ก็เขียนถูก พอดีว่าจะส่ง Report ออกมาให้ดูแต่ส่งออกไม่ได้
Value := GetSQLDateData('select drip_pethidine_date from labor where an="'+DBPipeline['an']+'"');
-
ลองแบบนี้ครับ
if getsqlintegerdata('select drip_pethidine_date from labor where an="'+DBPipeline['an']+'"')>0 then
Value := GetSQLDateData('select drip_pethidine_date from labor where an="'+DBPipeline['an']+'"')
else
Value := '';