VBS為什么總顯示語句未結束
Dim a,b,c,d,e,f
a="男性":b="女性":d="小王":e="小李":f="小麗"
c=inputbox("請輸入你兄弟姐妹的名字")
select case c
case d
msgbox(a)
case e
msgbox(a)
case f
msgbox(b)
elsecase
msgbox("不知道")
end select
這樣寫就行了
vbs 語句未結束
Dim objWord,colTasks,strName
strName = "我的電腦"
Set objWord = CreateObject("*ation")
Set colTasks = *
If *(strName) Then colTasks(strName).Close
*
我認為:
兩個set語句要寫在兩行上
if then在一行的不需要end if
誰幫我看下這段代碼結構有什么問題?錯誤顯示"語句未結束"Ifbo 愛
If book_type= "0" Then Recordset_list_cmd。
CommandText = "SELECT * FROM dw_product WHERE book_name LIKE '%"&keyword&"%'" else if book_type= "1" Then Recordset_list_cmd。 CommandText = "SELECT * FROM dw_product WHERE book_name LIKE '%"&keyword&"%' AND book_type = "1"" end if else if book_type= "2" Then Recordset_list_cmd。
CommandText = "SELECT * FROM dw_product WHERE book_name LIKE '%"&keyword&"%' AND book_type = "1"" end if end if。
總提示語句未結束 怎么回事
<%
set rs=*Object("*set")
sql="select * from QiQiBoy_Topic_Disp order by TopicID desc"
* sql,1,1
*rst
if * and * then
*"<palign="center">;沒有新貼"
else
for i=1 to 6
%>
只看這段代碼的話 提示的原因是因為你用IF語句 但沒有結束語句 在后面加上end if 就好了
<%
set rs=*Object("*set")
sql="select * from QiQiBoy_Topic_Disp order by TopicID desc"
* sql,1,1
*rst
if * and * then
*"<palign="center">;沒有新貼"
else
for i=1 to 6
end if
%>; 不排除其他錯誤
提示語句未結束
isong = "INSERT INTO svt (姓名,性別,年齡,籍貫) VALUES ('*("isname")','*("issex")','*("isage")','*("ijiguan")'"
* isong
*
*e isong ,recaffected
自己把輸出的isong仔細看看
不行就貼上來