IE does not explain the reasons and solutions for VBSCRIPT

  
                  The previously written .ASP web application has been running fine, but recently it can run on someone else's machine, but it doesn't work on my machine. A web page error occurs: the object does not support this property or method. In fact, IE did not solve VBSCRIPT or explained the error. It turns out that the IE of my machine has been destroyed, or caused by other reasons. I have been wondering about it, because this program was compiled by me several years ago, and there is no problem at all! So for my machine is to delete IE to re-do, but also to check the virus, stop the firewall, and register regsvr32 vbscript.dll, but everything is used to no avail. Finally, after tracking, it was found that it was due to the function default () of VBSCRIPT. It is normal to add a function to brackets () and call ().
It turns out that this is the case:
sub nextmonth
m1=mid(form1.cxny.value,5,2)
y1=mid(form1.cxny.value,1,4)
If m1<>"" then
m1=m1+1
else
msgbox "There may be an error in the month of the query!",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
call in webpage
modified:< Br>sub nextmonth()
end sub





















Until now, I have figured out that it used to be good, and now you can't use the default brackets.

Copyright © Windows knowledge All Rights Reserved