以前编写的.ASP
原来是这样的:
sub nextmonth
m1=mid(form1.cxny.value,5,2)
y1=mid(form1.cxny.value,1,4)
if m1<>"" then
m1=m1+1
else
msgbox "可能查询的月份出现错误!",0,form1.cxny.value
exit sub
end if
if m1>12 then
y1=y1+1
m1=1
end if
if m1>9 then
form1.cxny.value=y1&m1
else
form1.cxny.value=y1&"0"&m1
end if
document.form1.submit
end sub
网页中调用
修改后:
sub nextmonth()
end sub
网页中调用
把所有的类似的函数缺省方式加入括弧(),一切正常运行。到现在为止,我还弄明白,以前好好的,现在就不能用缺省括弧.