|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Type mistmatch error
I've got the following statment in my application:
Do While Not rs.EOF LstPars.AddItem (rs.Fields("NNI").Value) LstPars.ItemData(LstPars.NewIndex) = rs.Fields("BT_Exchange").Value rs.MoveNext Loop The problem is it saying type mistmatch on the line in red. Is there anyone that can tell me what is wrong there? Thansk
__________________
If this help you please show your gratitude by adding reputation points. Thanks JonyBravo |
|
#2
|
|||
|
|||
|
Your comparing an object to a string. Call the objects ToString function
LstPars.ItemData(LstPars.NewIndex).ToString() = rs.Fields("BT_Exchange").Value
__________________
I take donations in increments of $100. |
|
#3
|
||||
|
||||
|
in case this isn't solved yet...
what is LstPars? is this VB6 or VB.NET? |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Type mistmatch error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|