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
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