วาง memo ตัวหนึ่งลงไปแล้วเอาคำสั่งนี้ไปวางครับ
memo1.lines.text:=GetSQLSubQueryData('select lab_name '+
' from lab_head lh, lab_order_service los '+
' where lh.lab_order_number=los.lab_order_number '+
' and lh.vn="'+dbpipeline['vn']+'" '+
' and lh.order_date="'+dbpipeline['order_date']+'" '+
' and lh.order_time="'+dbpipeline['order_time']+'" ');