BMS-HOSxP Community
HOSxP => Report Exchange => ข้อความที่เริ่มโดย: prapansak ที่ มกราคม 23, 2012, 14:16:27 PM
-
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+") ');
-
cnื ยึกยือ ตัว n สุดท้ายเปล่าครับ
-
เปล่าครับ พอดีเมื่อกี่พิมพ์ผิด
ไม่ทราบว่าโครงสร้างถูกรึเปล่ากับการใช้งาน 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+") ');
-
เปล่าครับ พอดีเมื่อกี่พิมพ์ผิด
ไม่ทราบว่าโครงสร้างถูกรึเปล่ากับการใช้งาน 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+") ');
เปลี่ยนเป็นแบบนี้ครับ ;D
cnn:= GetSQLSubQueryData('select pttype from pttype where name in ('+cn+') ');
-
ได้แล้วขอบคุณมากๆเลยครับ