พบกับบทความเกี่ยวกับคอมพิวเตอร์และ programming ได้ที่ http://articles.modoeye.com
ASP programming / split
korakot_titla
korakot_titla
Mon 10 Jul 2006 11:04:14

รบกวนอีกหน่อยนะครับ

คือตอนนี้ผมส่งค่า checkbox มายังอีกหน้าหนึ่ง แล้วได้ผลลัพธ์ดังนี้นะครับ

023,026,028

แล้วผมลองใช้ Method Split เพื่อตัดตัว , ออกนะครับ แล้วลอง Response.write ออกม

กลับ Error นะครับ

 myChebox=request.form ("Checkbox")
 myarray = Split(myChebox ,",")
 response.write myarray
'-------------------------

Error Type:
Response object, ASP 0106 (0x80020005)
An unhandled data type was encountered.

'-------------------------------------------

ไม่ทราบว่าเพราะอารัยเหรอครับ พอแก้ไขได้หรือป่าวครับ รบกวนหน่อยนะครับ

Administrator
Mon 10 Jul 2006 12:08:17
ผมไม่แน่ใจว่า response.write ใน classic asp จะสามารถรับ argument เป็น array ได้หรือไม่ครับ

maxcounter=ubound(myarray)

FOR counter=0 TO maxcounter
    response.write myarray(counter)
NEXT

ลองแบบนี้ดูครับ
Reply
Name:
E-mail:
Home | Services | Forum | Classified | Directories | Support | Contact
ATOM feed RSS 0.9 feed RSS 1.0 feed RSS 2.0 feed
Copyright © 2005 - 2007 Modoeye.com, All Rights Reserved.
Disclaimer | Privacy policy | Term of Use | Term of Services
Valid XHTML Valid CSS! PHP: Hypertext Preprocessor MySQL database Apache Powered! FreeBSD Power to serve
Modoeye Sitemap Client login