Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Implicit Conversion Error
Message
De
12/07/2004 17:32:50
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00923472
Message ID:
00923474
Vues:
32
This message has been marked as the solution to the initial question of the thread.
Todd,

You need a double = when doing comparisons:
if (this.myLabel.Text == "Disabled")
~~Bonnie

>This line: if (this.myLabel.Text = "Disabled")
>
>gives this error: Cannot implicitly convert "String" to "Bool"
>
>What? Why is this and what to do?
>
>Many thanks,
>
>Todd
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform