PDA

Click to See Complete Forum and Search --> : Problem in declaration variable


Tonatiuh
Dec 7th, 1999, 04:37 AM
I was using the following code into an ActiveX UserControl in VB5.
Dim Ctl As Control
On Error Resume Next
For Each Ctl In ParentControls
If TypeOf Ctl Is UC Then
If Ctl.Name = UserControl.Ambient.Name Then
Combo1.AddItem Ctl.Name & " - " & Ctl.Index
End If
End If
Next


But it returns me an error in an ActiveX UserControl in VB.

Compile Error
Expected user-defined type, not project

What's happening? My installed help files and the original disk are damaged.

Thanks!


[This message has been edited by Tonatiuh (edited 12-07-1999).]