|
-
Jan 2nd, 2010, 04:03 PM
#1
Thread Starter
New Member
VBSript - Microsoft Script Control Help!
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|