Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible unintended reference comparison
Message
From
05/03/2010 09:15:08
 
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01452752
Message ID:
01452780
Views:
26
>string is a Type. String is a class.
> if ((bool)r["Employed"]) { }Hopefully the last line answers your other question .....

Thanks Viv.

This is what I ended up with: if ((bool)(dt.Rows[0]["Employed"]) == false)

I think I had missed off the brackets surrounding dt.Rows[0]["Employed"]
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform