- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
11 Posted Topics
[code] DateTime tempdate = new DateTime(month you want day 1); int fridays = 0; while(tempdate == month you want){ if(tempdate.day = friday){ fridays ++; } tempdate.addday(); } [/code] all done, sorry it's in psudeo code
I have a website adding orders to my database. These start at 10000000 and increment by 1. I have pieces of paper sent out in advance with order numbers on them. These start at 50000000 and increment by 1. We get batches of paper orders brought back and need to …
I currently have this in my css. But for the life of me IE7 won't do as it's told. The page looks GREAT in firefox but refuses to wrap in IE. [code] pre { white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera …
I had a similar problem and from reading other forums it looks like a memory issue (precise I know :) ) And if you try a couple of times it seems to work. Anyway, I fixed it in a really horrible way. Although this fix does work I'm looking for …
I'm having problems with a passing a referance in a foreach loop. "Cannot pass 'currentphoto' as a ref or out argument because it is a 'foreach iteration variable'" foreach(photo currentphoto in thephotos){ panel1.Controls.Add(new thumbnailPicture(ref currentphoto)); } I'm 100% sure that passing by referance would be the right way to elegantly …
this is a tricky one to get your head around. But basically you call the print page method at the end of the printpage method. And use a variable or counter somewhere to make sure you don't get stuck in an infinite loop. in pseudo code... I'm typing this from …
might sound stupid but some old internet explores are case sensitive with file extensions. Check if its image.JPG or image.Jpg or image.jpg etc. I hav't got time to find out how old but i remeber hitting this problem once and this was the fix.
To get that error you usually have to miss a ' or a ". since in Php you can use one inside the other with few problems you can do this. [CODE] echo 'look at all "these" double quotes that "are not escaped" because the string closes here'; [/CODE] or …
it's getting late so bear with this as it's goning to be in pseudo code and not 100% php. Im not sure if the "1=1" should just be "1" [CODE] $query = "select * from tbl_accounts WHERE 1=1"; while (list($key, $val) = each($_POST)) { $query .= "and $key like '%$val%'" …
ah, you don't want to change the button name. You are getting mixed up by the way Visual Studio creates methods for you. When a button is clicked it fires an event. Each button stores a list of event handlers which get told about the event that just happened. So …
Well if you want to know about digits I usually convert the int into a string. Then you can access each letter in the array. You can use a foreach() loop. [code] int counter = 0; string tempstring = ""+ numberentered; foreach(char x in tempstring){ if((x=='1')||(x=='3')||(x=='5')||(x=='7')||(x=='9'))){ counter++; } } [/code] …
The End.
jonesc5