251
Report Exchange / Re: ต้องการแปลงชื่อให้เป็นตัวเลข GetMultipleList
« เมื่อ: มกราคม 23, 2012, 16:35:04 PM »เปล่าครับ พอดีเมื่อกี่พิมพ์ผิดเปลี่ยนเป็นแบบนี้ครับ
ไม่ทราบว่าโครงสร้างถูกรึเปล่ากับการใช้งาน GetMultipleList ตอนแปลงเป็น ตัวเลข
cn:= GetMultipleList('select name from pttype order by pttype');
ShowMessage(cn);
cnn:= getsqlstringdata('select pttype from pttype where name in ('+cn+') ');
ลองเอาค่าไปใช้ใช้งานไม่ได้ครับดูให้ที
rw610:=getsqlintegerdata('select count(distinct(an)) from ipt '+
' where pttype in("+cnn+") ');
cnn:= GetSQLSubQueryData('select pttype from pttype where name in ('+cn+') ');