Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem comparing strings
Message
De
27/02/2005 09:14:11
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00990955
Message ID:
00990968
Vues:
18
Gerard,

The comparison operator is ==, rather than =.

~~Bonnie



>Hi.
>have the following code:
>string MyNum
>MyNum = drN["num_prev"].ToString();
>.....num_prev is a character type field in a table, length 2
>
>if ( MyNum3.Substr(2,1) = "Z") .. gives a Cannot Implicitly convert a type 'string' to 'bool'
>
>Anybody any ideas of whats wrong here.
>
>regards,
>Gerard
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