Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible unintended reference comparison
Message
De
05/03/2010 09:15:08
 
 
À
05/03/2010 09:03:21
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01452752
Message ID:
01452780
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform