Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
Here is the reason of my concern :
I've written an activeX control that I've registered using the "regsvr32" DOS command. Then I've included this control in an html page thanks to "ActiveX Control Pad". When I launch the html page, the activeX object displays properly and reacts correctly on the events for which I have written code in Visual Basic ( Private Sub Button1_Click() for example ). THE PROBLEM IS that there are some public
procedures/functions of the ActiveX object that I would like to call in the vbscript section of my html page. When I launch the script wizard in the activeX control pad, I can see the public variables and procedures or functions of my ActiveX control. Those I want to call are indeed among them ... but I don't succeed in calling them !
This is what my code looks like :
<HTML>
<HEAD>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub window_onLoad()
call UserControl1.setMail("blablabla"
MsgBox "test"
end sub
-->
</SCRIPT>
<TITLE>New Page</TITLE>
</HEAD>
<BODY>
<OBJECT ID="UserControl11" WIDTH=320 HEIGHT=240
CLASSID="CLSID:9EC1F059-6E9C-4803-A0AF-942EB4A0271D">
<PARAM NAME="_ExtentX" VALUE="8467">
<PARAM NAME="_ExtentY" VALUE="6350">
</OBJECT>
</BODY>
</HTML>
The line of code that bothers me is :
call UserControl1.setMail("blablabla"
where "setMail" is the name of a public procedure of my ActiveX object.
This line doesn't do what it is supposed to !
( It doesn't do anything actually ).
Also, because of this line, the following vbscript lines seem not to be executed.
Thanks for helping ...
Benjamin.
Here is the reason of my concern :
I've written an activeX control that I've registered using the "regsvr32" DOS command. Then I've included this control in an html page thanks to "ActiveX Control Pad". When I launch the html page, the activeX object displays properly and reacts correctly on the events for which I have written code in Visual Basic ( Private Sub Button1_Click() for example ). THE PROBLEM IS that there are some public
procedures/functions of the ActiveX object that I would like to call in the vbscript section of my html page. When I launch the script wizard in the activeX control pad, I can see the public variables and procedures or functions of my ActiveX control. Those I want to call are indeed among them ... but I don't succeed in calling them !
This is what my code looks like :
<HTML>
<HEAD>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub window_onLoad()
call UserControl1.setMail("blablabla"
MsgBox "test"
end sub
-->
</SCRIPT>
<TITLE>New Page</TITLE>
</HEAD>
<BODY>
<OBJECT ID="UserControl11" WIDTH=320 HEIGHT=240
CLASSID="CLSID:9EC1F059-6E9C-4803-A0AF-942EB4A0271D">
<PARAM NAME="_ExtentX" VALUE="8467">
<PARAM NAME="_ExtentY" VALUE="6350">
</OBJECT>
</BODY>
</HTML>
The line of code that bothers me is :
call UserControl1.setMail("blablabla"
where "setMail" is the name of a public procedure of my ActiveX object.
This line doesn't do what it is supposed to !
( It doesn't do anything actually ).
Also, because of this line, the following vbscript lines seem not to be executed.
Thanks for helping ...
Benjamin.