Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion error
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01499793
Message ID:
01499808
Views:
36
>>Hi
>>
>>Why would I get
>>
>>Conversion from string "" to type 'Double' is not valid.
>>
>>on this line
>>
>>checkedText += +item.Text + ", "
>>
>>when in the watch list both items are strings
>
>Probably because of the + in front of item, "+item.Text".

All of which begs the question of what sort of implicit cast VB was trying to make in the first place:
Dim s2 As String = "123.34"
Dim x2 As VariantType = s2
Dim x3 As VariantType = VarType(x2)
Boy am I glad I use C# :-}
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform