Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implicit Conversion Error
Message
From
12/07/2004 17:32:50
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00923472
Message ID:
00923474
Views:
33
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform