Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX / VBScript Runtime error

Status
Not open for further replies.

joeteck

MIS
Jun 22, 2000
1
US
Here is my problem. It may be long so bare with me.<br><br>Some computers here can run the ActiveX Calendar but some can't. (i.e. all Programmers (NT 4.0) and 1 PC with Windows 98 SE w/64 MB ram can run it.)<br><br>This is the error:<br><br>An error has occurred in the script on this page.<br><br>Line: 30<br>Char: 2<br>Error: Object doesn't support this property or method:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'form1.Calendar1.Value'<br>Code: 0<br><br>Do you want to continue running script on this page? (Y/N)<br><br>Here is part of the code where is is failing:<br><br>Sub Window_onload<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;form1.calendar1.Value = date<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;form1.select1.selectedIndex = 0<br>End Sub<br><br>Sub submit1_onclick<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;form1.mdate.value = form1.Calendar1.Value<br>End Sub<br><br><br><br><br><br>
 
I came up against the same problem. I couldn't find a reason or resolution to the problem so what I did was to create a dll in VB containing one form with a calendar control on it. <br><br>2 properties&nbsp;&nbsp;a. Initial Date <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b. Calendar Value <br><br>I compiled this and called if from my script like you would any other object and it worked on all computers. I'm not sure why or how. <br><br>Hope this helps <br><br>PS: If you want I can mail you the dll and calling script<br><br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top