Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion error
Message
De
11/02/2011 16:40:09
 
 
À
11/02/2011 13:56:43
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01499793
Message ID:
01499821
Vues:
33
>>>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 :-)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform