Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion error
Message
From
11/02/2011 16:40:09
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01499793
Message ID:
01499821
Views:
32
>>>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# :-}

hah

enuffs enuff.

I've gone home

Thanks :-)
Previous
Reply
Map
View

Click here to load this message in the networking platform