Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# and datasets compile error?
Message
De
03/03/2004 16:26:33
 
 
À
03/03/2004 16:13:30
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00882892
Message ID:
00882902
Vues:
17
Add one more change to it:
    if (userDS.Tables[0].Rows.Count == 1)
The square brackets ... in C# square brackets are used for collections, whereas parentheses are used in VB.

~~Bonnie


>Hey, JB...
>
>I believe you said this was the offending line...
>
> if userDS.Tables(0).Rows.Count = 1
>
>If you change it to this, it should be OK...
>
> if (userDS.Tables(0).Rows.Count == 1)
>
>note that in C, one '=' is for assignment, two '==' for comparison.
>
>HTH...
>
>Kevin
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