TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nel
NA
716
1.1m
Specified cast is not valid
Jul 10 2012 7:07 AM
Hi,
Can anybody help me how to convert type object ionto decimal please?
I have this code
object rez = command2.ExecuteScalar();
iznosd = (decimal)rez;
I tried also
iznosd = (decimal)command2.ExecuteScalar();
but nothing changed, I get error "Specified cast is not valid error" in this line
iznosd = (decimal)command2.ExecuteScalar();
Thanks
Reply
Answers (
5
)
scientific calculator
printing aform c# that is larger than the acreen