Click here to Skip to main content
15,910,872 members
Home / Discussions / C#
   

C#

 
GeneralRe: A Dialog bug Pin
Som Shekhar22-Jan-10 6:49
Som Shekhar22-Jan-10 6:49 
GeneralRe: A Dialog bug Pin
loyal ginger22-Jan-10 6:43
loyal ginger22-Jan-10 6:43 
AnswerRe: A Dialog bug Pin
loyal ginger22-Jan-10 6:39
loyal ginger22-Jan-10 6:39 
GeneralRe: A Dialog bug Pin
Muammar©22-Jan-10 6:49
Muammar©22-Jan-10 6:49 
QuestionNetwork login problem Pin
Farbil22-Jan-10 4:32
Farbil22-Jan-10 4:32 
AnswerRe: Network login problem Pin
loyal ginger22-Jan-10 4:53
loyal ginger22-Jan-10 4:53 
Questionmy zipped extention Pin
viper1222-Jan-10 3:53
viper1222-Jan-10 3:53 
QuestionRe: my zipped extention Pin
OriginalGriff22-Jan-10 3:57
mveOriginalGriff22-Jan-10 3:57 
AnswerRe: my zipped extention Pin
viper1223-Jan-10 2:41
viper1223-Jan-10 2:41 
GeneralRe: my zipped extention Pin
OriginalGriff23-Jan-10 3:56
mveOriginalGriff23-Jan-10 3:56 
AnswerRe: my zipped extention Pin
0x3c022-Jan-10 4:22
0x3c022-Jan-10 4:22 
GeneralRe: my zipped extention Pin
viper1223-Jan-10 2:42
viper1223-Jan-10 2:42 
AnswerRe: my zipped extention Pin
Pete O'Hanlon22-Jan-10 4:28
mvePete O'Hanlon22-Jan-10 4:28 
AnswerRe: my zipped extention Pin
Mirko198023-Jan-10 5:01
Mirko198023-Jan-10 5:01 
QuestionWin32_Service Pin
vinothkumar_Dhakshinamoorthy22-Jan-10 2:32
vinothkumar_Dhakshinamoorthy22-Jan-10 2:32 
AnswerRe: Win32_Service Pin
Covean22-Jan-10 2:52
Covean22-Jan-10 2:52 
GeneralRe: Win32_Service Pin
vinothkumar_Dhakshinamoorthy22-Jan-10 3:00
vinothkumar_Dhakshinamoorthy22-Jan-10 3:00 
GeneralRe: Win32_Service Pin
Covean22-Jan-10 3:14
Covean22-Jan-10 3:14 
Questiondate Pin
arkiboys22-Jan-10 1:16
arkiboys22-Jan-10 1:16 
AnswerRe: date Pin
Luc Pattyn22-Jan-10 1:25
sitebuilderLuc Pattyn22-Jan-10 1:25 
GeneralRe: date [modified] Pin
OriginalGriff22-Jan-10 2:28
mveOriginalGriff22-Jan-10 2:28 
GeneralRe: date [modified] Pin
Luc Pattyn22-Jan-10 3:06
sitebuilderLuc Pattyn22-Jan-10 3:06 
Huh?

Where I live, there are four quarters in a year (as in most everything else), so each quarter holds three months. That means the divisor has to be three, not four.

Month         1  2  3  4  5  6  7  8  9 10 11 12
(Month+2)/3   1  1  1  2  2  2  3  3  3  4  4  4
(Month/4)+1   1  1  1  2  2  2  2  3  3  3  3  4
                                !        !  ! 


[ADDED]
((Month-1)/3)+1 would be fine too, however I always prefer the other form, as it looks better (for me at least), and it is somewhat safer, with an outer operator of higher precedence so you can subtract it from something without needing extra parentheses; that is somewhat similar to inverse order tests such as if (null==variable)..., which I don't use!
[/ADDED]

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]


modified on Friday, January 22, 2010 12:49 PM

GeneralRe: date Pin
#realJSOP22-Jan-10 3:14
professional#realJSOP22-Jan-10 3:14 
GeneralRe: date Pin
Luc Pattyn22-Jan-10 3:19
sitebuilderLuc Pattyn22-Jan-10 3:19 
GeneralRe: date Pin
OriginalGriff22-Jan-10 3:56
mveOriginalGriff22-Jan-10 3:56 

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.