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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with my first ActiveX Control - Passing Properties 1

Status
Not open for further replies.

toddman

Programmer
Sep 27, 2000
6
US
This is probably a no brainer, but I need a kick start...

I am building an ActiveX control to dial our company's phone system on our web based intranet.

I've got it to dial... no problem.

But I need to know how to pass a parameter (the Phone Number) to the ActiveX control, then retrieve this parameter. (I am using VB6 to write the ActiveX control)

I am pretty sure I need to use the <PARAM> tag to send the parameter, but what is the syntax to retreive that information in VB?

Any help would be appreciated!
 
Make a public Function on the control called Dial.

Your control will look like this:

Option Explicit

Private Sub UserControl_Initialize()
'Do you initialization here.
End Sub

Public Function Dial(strPhone As String) As Boolean
'Check for valid phone numbers if you need to.
'Then dial here.
Dial = True
End Function


The code to call it will look like this:

Option Explicit

Private Sub Form_Load()
If Not UserControl11.Dial(&quot;123456789&quot;) Then
MsgBox &quot;Could not dial phonenumber&quot;
End If
End Sub
Snaggs
tribesaddict@swbell.net
 
hi, i got the same issue.

i would need to get the parameter from the html page within the object tag.

I can't follow you on how you retrieve the parameter from the html page. would you mind to rephrase what you wrote?

of course, i'd appreciate very much.
cheers
brayan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top