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

VBSript - Microsoft Script Control Help!

Status
Not open for further replies.

iso96

Programmer
May 11, 2005
7
GB
Hi,

I am using Adobe Director and have embedded an Activex component KDPhone. Most of the functions work apart from one. I have been advised to use 'Microsoft Script Control' here is the VB code, to get the linename from the KDPhone component.

-- Dim i, lvRet As Int32
-- Dim lvLineName As String
-- For i = 0 To KDPhoneControl.NumberOfLines - 1
-- lvRet = KDPhoneControl.GetLineName(i, lvLineName)

-- ComboBoxLines.Items.Add(lvLineName)
-- Next

-- ComboBoxLines.SelectedIndex = KDPhoneControl.LineID

My question is how do i get the above code to run using the 'Microsoft Script Control' How do i get it to recognise 'KDPhoneControl' should i use GetObject? I am in the process of learning VB.

I hope i ve explained it enough.

thanks

iso
 
[0]
>I have been advised to use 'Microsoft Script Control' here is the VB code, to get the linename from the KDPhone component.
By the look of the it, I would be surprised you've to use the script control for that at all.

[1] But this data type of int32, you do have a problem. It is not vb6 unless it is vb.net.
>Dim i, lvRet As Int32
[tt]Dim i As Byte, lvRet As Long[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top