Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# and datasets compile error?
Message
From
03/03/2004 16:26:33
 
 
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00882892
Message ID:
00882902
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform