Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ActiveX - <param name...>

Posted on 2000-03-28
5
Medium Priority
?
807 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 150 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

971 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