Hi everyone, I have a problem with this simple code I grabbed from the internet (it's just a small extract):
Dim chsr As Object
Dim id As String
Dim m_scope As Telescope
On Error GoTo noascom
Set chsr = New DriverHelper.Chooser
chsr.DeviceType = "Telescope"
you can remember the telescope ID and set it to give you the last one used
id = chsr.Choose(id)
Set m_scope = CreateObject(id) '<--- <--- <---- <---- <---- <----'
' connect to the telescope'
m_scope.Connected = True
Although it works with telescope simulator, with MeadeEx.Telescope driver it gives the "error 13 - type mismatch" at highlighted line. Can anyone find the problem?
