I am trying to set the property of an ActiveX control I made in html/vbscript.
Here is the ActiveX Control's code:
Here is the code for the vbscript:Code:Private MyJobKey As Variant Public Property Let JobKey(ByVal NewValue As Variant) MyJobKey = NewValue End Property Public Property Get JobKey() As Variant JobKey = MyJobKey End Property Private Sub Command1_Click() MsgBox Me.JobKey End Sub
Code:<object ID="MyControl" classid="CLSID:48A068E9-B3C8-4EB8-B0E8-60AF511F30EB" width=80 height=30> </object> <script language=vbscript> MyControl.JobKey = 1 </script>
So the script should have set the MyControl's JobKey to 1, but when I click on Command1 the message box doesn't display 1. Any ideas?
Thanks!
Thai


Reply With Quote