|
|
|
ผมใช้ iff แล้วมัน Error Type mismatch: 'iif' ครับ ช่วยแนะนำด้วยครับ |
|
|
|
|
|
|
|
Code (ASP)
<%
dim CustomerID_h, field_name_Customer, Values_Customer, CustomerName_h, CustomerID_n, CustomerName_n
CustomerID_h = 1
CustomerName_h = 1
CustomerID_n = 52145
CustomerName_n = "mork"
if CustomerID_h = 1 then
field_name_Customer = field_name_Customer & iif(field_name_Customer ="","",", ") & CustomerID
Values_Customer = Values_Customer & iif(Values_Customer ="","",", ") & CustomerID_n
end if
if CustomerName_h = 1 then
field_name_Customer = field_name_Customer & iif(field_name_Customer ="","",", ") & CustomerName
Values_Customer = Values_Customer & iif(Values_Customer ="","",", '") & CustomerName_n & "'"
end if
response.write "field_name_Customer = " & field_name_Customer & "<br>"
response.write "Values_Customer = " & Values_Customer & "<br>"
response.end
%>
Eror ดังนี้
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'iif'
Tag : ASP, VBScript
|
|
|
|
|
|
Date :
2013-10-01 14:49:50 |
By :
morkmanner |
View :
1182 |
Reply :
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Syntax แปลก ๆ น่ะครับ
|
|
|
|
|
Date :
2013-10-01 17:04:45 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ASP มี ฟังก์ชันส์ IIF หรือป่าวครับ
|
|
|
|
|
Date :
2013-10-09 13:25:40 |
By :
morkmanner |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|