Click here to Skip to main content
15,926,596 members
Home / Discussions / C#
   

C#

 
Generalurgent ! handling multiple data tables in a dataset Pin
sharpX19-Jul-04 18:40
sharpX19-Jul-04 18:40 
GeneralRe: urgent ! handling multiple data tables in a dataset Pin
Heath Stewart20-Jul-04 9:49
protectorHeath Stewart20-Jul-04 9:49 
QuestionHow can I display 2 forms, one after the other? Pin
arik_a19-Jul-04 18:08
arik_a19-Jul-04 18:08 
AnswerRe: How can I display 2 forms, one after the other? Pin
MKlucher19-Jul-04 18:28
MKlucher19-Jul-04 18:28 
GeneralRe: How can I display 2 forms, one after the other? Pin
arik_a19-Jul-04 22:47
arik_a19-Jul-04 22:47 
QuestionHow to realize Web control's context menu by c# Pin
nakey_yang19-Jul-04 17:18
nakey_yang19-Jul-04 17:18 
AnswerRe: How to realize Web control's context menu by c# Pin
Nick Parker19-Jul-04 17:29
protectorNick Parker19-Jul-04 17:29 
GeneralVery Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Member 112523619-Jul-04 17:12
Member 112523619-Jul-04 17:12 
Hi,
I'm overloading the ++ operator for my Day Class. I have the implementation for this overload within my class and when I tested this in the debug mode, my Day which is supposed to increment as I've coded doesn't increse. It basically gives out an object of type Day itself with the next date. Here is my code. Any help with this would be appreciated. Please do help me out with this.


<br />
public static Day operator ++(Day d)<br />
<br />
{<br />
<br />
	Day nxtDay;<br />
<br />
	int nxtDate;<br />
<br />
	//GregorianCalendar gc = new GregorianCalendar();<br />
<br />
	try<br />
<br />
	{<br />
<br />
		nxtDate = d._dayofmonth + 1;<br />
<br />
		nxtDate += 1 ;<br />
<br />
		nxtDay = new Day(new DateTime(d.Year, d.Month, nxtDate));<br />
<br />
	}<br />
<br />
	catch (Exception e)<br />
<br />
	{<br />
<br />
		e.GetType();<br />
<br />
		int nxtDayMonth = (d.Month == 12) ? 1 : d.Month + 1;<br />
<br />
		int nxtDayYear = (nxtDayMonth == 1)? d.Year + 1: d.Year;<br />
<br />
		nxtDay  = new Day(gc.ToDateTime(nxtDayYear,nxtDayMonth,1,1,1,1,1));<br />
<br />
	}<br />
<br />
	return nxtDay;<br />
<br />
}<br />




Thanks

~~~~~~~~~~~~~~~~~~~~~~~~
Shravan Addaypally
.NET Apps Developer
BellSouth Billing Inc.
Birmingham, AL 35205
~~~~~~~~~~~~~~~~~~~~~~~~
GeneralRe: Very Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Javier Lozano19-Jul-04 18:06
Javier Lozano19-Jul-04 18:06 
GeneralRe: Very Urgent Please -- Overloading ++ operator doesn't function as intended. Pin
Heath Stewart20-Jul-04 10:04
protectorHeath Stewart20-Jul-04 10:04 
GeneralBinary Data over network Pin
joelwwk19-Jul-04 17:11
joelwwk19-Jul-04 17:11 
GeneralRe: Binary Data over network Pin
Heath Stewart20-Jul-04 10:19
protectorHeath Stewart20-Jul-04 10:19 
GeneralMissing Authorization http header Pin
darma_m19-Jul-04 15:37
darma_m19-Jul-04 15:37 
GeneralResizing help Pin
Wjousts19-Jul-04 15:18
Wjousts19-Jul-04 15:18 
GeneralRe: Resizing help Pin
Heath Stewart20-Jul-04 10:25
protectorHeath Stewart20-Jul-04 10:25 
Questionhow to get the system imagelist Pin
noosword19-Jul-04 14:46
noosword19-Jul-04 14:46 
AnswerRe: how to get the system imagelist Pin
Heath Stewart20-Jul-04 4:29
protectorHeath Stewart20-Jul-04 4:29 
GeneralRe: how to get the system imagelist Pin
noosword20-Jul-04 19:02
noosword20-Jul-04 19:02 
GeneralRe: how to get the system imagelist Pin
Heath Stewart21-Jul-04 3:59
protectorHeath Stewart21-Jul-04 3:59 
GeneralCapturing the desktop Pin
Salman Taseer`19-Jul-04 13:15
Salman Taseer`19-Jul-04 13:15 
GeneralRe: Capturing the desktop Pin
Nick Parker19-Jul-04 17:16
protectorNick Parker19-Jul-04 17:16 
GeneralTag name of the root element of the XML data file Pin
Flack19-Jul-04 13:04
Flack19-Jul-04 13:04 
GeneralRe: Tag name of the root element of the XML data file Pin
Dave Kreskowiak19-Jul-04 15:32
mveDave Kreskowiak19-Jul-04 15:32 
GeneralRe: Tag name of the root element of the XML data file Pin
Flack19-Jul-04 16:05
Flack19-Jul-04 16:05 
GeneralRe: Tag name of the root element of the XML data file Pin
Nick Parker19-Jul-04 17:11
protectorNick Parker19-Jul-04 17:11 

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.