Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conversion error
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01499793
Message ID:
01499808
Vues:
37
>>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# :-}
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform