Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: Automated save as webpage completed by C# Pin
Not Active23-Oct-09 7:05
mentorNot Active23-Oct-09 7:05 
GeneralRe: Automated save as webpage completed by C# Pin
Nguyễn Đức Thiện23-Oct-09 7:12
Nguyễn Đức Thiện23-Oct-09 7:12 
AnswerMessage Closed Pin
23-Oct-09 7:45
stancrm23-Oct-09 7:45 
GeneralRe: Automated save as webpage completed by C# Pin
Nguyễn Đức Thiện23-Oct-09 15:31
Nguyễn Đức Thiện23-Oct-09 15:31 
QuestionBeginner in need of help Pin
Darren Shields23-Oct-09 6:04
Darren Shields23-Oct-09 6:04 
AnswerRe: Beginner in need of help Pin
Henry Minute23-Oct-09 6:16
Henry Minute23-Oct-09 6:16 
GeneralRe: Beginner in need of help Pin
Darren Shields23-Oct-09 6:30
Darren Shields23-Oct-09 6:30 
GeneralRe: Beginner in need of help Pin
Henry Minute23-Oct-09 6:44
Henry Minute23-Oct-09 6:44 
It wouldn't be in your code, it would be what is entered into the TextBoxes (score and score2) but never mind.

In order to tie down where the error is you could make your code a little more long winded, temporarily, something like this:
Int16 score = Convert.ToInt16(score.Text);
Int16 score2 = Convert.ToInt16(score2.Text);
if (score > score2)
{
  points12 += 3;
}
else if (score < score2)
{
  points4 += 3;
}
else
{
  points4 += 1;
  points12 += 1;
}


That way you will get an error on the line for the incorrect text and can narrow down your search for a solution.

BTW: Do you notice how my code sample is nicely formatted? it is because I have surrounded it with <pre>code goes here</pre> tags. That doesn't format it for you but will preserve any formatting you put in. You can do it automatically by highlighting your code and clicking on the 'code block' widget, just above the reply text box. Smile | :)

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

AnswerRe: Beginner in need of help Pin
ely_bob23-Oct-09 6:43
professionalely_bob23-Oct-09 6:43 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 7:02
mentorNot Active23-Oct-09 7:02 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 7:41
professionalely_bob23-Oct-09 7:41 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 7:53
mentorNot Active23-Oct-09 7:53 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 8:12
professionalely_bob23-Oct-09 8:12 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 8:22
mentorNot Active23-Oct-09 8:22 
GeneralRe: Beginner in need of help Pin
ragnaroknrol23-Oct-09 8:41
ragnaroknrol23-Oct-09 8:41 
GeneralRe: Beginner in need of help Pin
EliottA23-Oct-09 17:19
EliottA23-Oct-09 17:19 
GeneralRe: Beginner in need of help Pin
ragnaroknrol23-Oct-09 8:13
ragnaroknrol23-Oct-09 8:13 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 8:29
mentorNot Active23-Oct-09 8:29 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 8:42
professionalely_bob23-Oct-09 8:42 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 8:31
professionalely_bob23-Oct-09 8:31 
GeneralRe: Beginner in need of help [modified] Pin
ragnaroknrol23-Oct-09 8:46
ragnaroknrol23-Oct-09 8:46 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 9:06
professionalely_bob23-Oct-09 9:06 
GeneralRe: Beginner in need of help Pin
ragnaroknrol23-Oct-09 9:11
ragnaroknrol23-Oct-09 9:11 
AnswerRe: Beginner in need of help Pin
Not Active23-Oct-09 7:01
mentorNot Active23-Oct-09 7:01 
QuestionSorry - I remove this topic to WCF forum Pin
dataminers23-Oct-09 5:40
dataminers23-Oct-09 5:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.