Hi,

Why does the followin code says "Type missmatch "?

If c.Container.Caption = "Info" Then
If TypeOf c Is ComboBox Then valColl.Add (c.Text), c.Index
If TypeOf c Is label Then labelColl.Add c.Caption, c.Index
If TypeOf c Is TextBox Then valColl.Add c.Text, c.Index
End If
Next c


These follwing 3 lines give the error "Type missmatch"

If TypeOf c Is ComboBox Then valColl.Add (c.Text), c.Index
If TypeOf c Is label Then labelColl.Add c.Caption, c.Index
If TypeOf c Is TextBox Then valColl.Add c.Text, c.Index


Thanks