Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's Wrong With This
Message
From
20/07/2007 19:10:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01242497
Message ID:
01242532
Views:
16
>
>iCount = oDS.Tables[0].Rows[0]["reccnt"];
>
>
>When I try to compile, I get
>"Cannot implicitly convert type 'object' to 'int'. An explicit conversion exists (are you missing a cast?)"
 iCount = (int)oDS.Tables[0].Rows[0]["reccnt"];
Update: Forgot to say why it errors. You always get an object and you need to cast it.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform