Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF Statements
Message
From
14/08/2002 11:24:31
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
IF Statements
Miscellaneous
Thread ID:
00689596
Message ID:
00689596
Views:
60
Hello,

I just came across something that I don't understand. What is wrong with the following C# code?

if (txtUserId.Text.Length = 0)

The compile error was "Cannot Implicitly convert type 'int' to 'bool'.
Thanks

Jim
Next
Reply
Map
View

Click here to load this message in the networking platform