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
Anthony Gordon
NA
9
0
not all code paths return a value
Apr 5 2009 10:56 AM
Hey guys, below is my code, and I keep getting an error message saying 'not all code paths return a value'. The error is coming from my method convertToMinutes(). Can anyone help me ? thanks
[code]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private int convertToMinutes(int theValue)
{
return theValue;
}
private void button1_Click(object sender, EventArgs e)
{
int secondsInput;
string minutesOutput;
string hoursOutput;
}
}
}
[/code]
Reply
Answers (
2
)
how to save data from table to excel sheet
help with BindingSources