|
-
Nov 25th, 2001, 06:59 AM
#1
Thread Starter
Lively Member
Which type does Collection object accept?
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
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
|