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
Sarah Nel
NA
19
0
if statement variable
Apr 28 2010 5:55 AM
[code]
int numberOfDays = 0;
int total = 0;
if (validation.Month == 12 || validation.Month == 01)
{
numberOfDays = 14;
}
total += numberOfDays;
[/code]
The total variable is not storing the numberOfDays total, only 14 is for Dec and Jan, it does not increase.
Reply
Answers (
5
)
Crystal Report .NET 2008 - Setting Paper Size
Visual Studio 2010 Downloads