Solved

ActiveX - <param name...>

Posted on 2000-03-28
5
800 Views
Last Modified: 2013-11-18
How can I use, within an ActiveX Control, the data introduced with <param name...> from the HTML document?

thanks
crisoft
0
Comment
Question by:crisoft
  • 2
  • 2
5 Comments
 

Expert Comment

by:TheFly
ID: 2664641
crisoft,

the <param name...> will pass a value to a public property within the ActiveX control.

In your ActiveX control -
  declare a public Let/Get property

  within the Let property assign the argument value to a modular level variable.

Hope this helps.

Toodle pip.
0
 

Author Comment

by:crisoft
ID: 2664766
Can you give me a small example? I can´t understand your explanation.
0
 

Author Comment

by:crisoft
ID: 2664992
Can you give me a small example? I can´t understand your explanation.
-----------------------------7d0262164f8
Content-Disposition: form-data; name="qid"

10318689
-----------------------------7d0262164f8
Content-Disposition: form-data; name="Submit"

Submit
-----------------------------7d0262164f8--
0
 

Accepted Solution

by:
TheFly earned 50 total points
ID: 2668372
crisoft,

If your main concern is how to pass a value into an ActiveX control from HTML then try the following instead -

{activeX name}.{property name}= value

heres an example of HTML that i wrote recently that makes use of activex property and event

<p><object name="AssetCom" ID="usr_AssetTV" classid="clsid:9F871D8A-E9F4-11D3-B4AD-0080C7335CA6"
CODEBASE="AssetTV_001.CAB#version=1,0,0,41"
 width="180" height="382">
</object></p>
<body bgcolor="#D9F0ED"></body>
<SCRIPT LANGUAGE="VBScript">
AssetCom.SetIP="10.4.170.70/"
Sub AssetCom_SelectedAsset(AssetId)
parent.frames("Main").location.href="dcs.asp?astrpage=Main&astrAssetId=" & Assetid
End Sub
</SCRIPT>

In this example there is a property in the activeX control called SetIP and the value of "10.4.170.70/" is passed in.


In the activex control itself use the following code -

Option Explicit
Private mstrIPAddress As String

Public Property Get SetIP() As String
    SetIP = mstrIPAddress
End Property

Public Property Let SetIP(astrIP As String)
    mstrIPAddress = astrIP
End Property


If this doesnt help can you give me more info about your problem or concerns.

Good Luck
0
 

Expert Comment

by:botikklopik
ID: 22326226
Thanks, TheFly. Your solution also helps me in sorting out the problem. Cheers :)
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visual Studio search word table and return Cell index 8 69
Google Analytics 5 63
How to Add / Edit Windows Menu 4 68
VB script to continue despite error 2 16
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question