Showing results 1 to 18 of 18
Search took 0.01 seconds.
Posts Made By: jonesc5
Forum: C# Apr 29th, 2008
Replies: 2
Views: 380
Posted By jonesc5
Re: Locking a Database

not a problem at the momment I only have 4 orders and they are mine. It's brand new.
Forum: C# Apr 29th, 2008
Replies: 2
Views: 380
Posted By jonesc5
Locking a Database

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...
Forum: HTML and CSS Apr 4th, 2008
Replies: 0
Views: 1,116
Posted By jonesc5
wrapping a pre tag

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.

pre {
white-space: pre-wrap; /* css-3 */
...
Forum: C# Mar 21st, 2008
Replies: 1
Views: 4,866
Posted By jonesc5
Re: Generic error in GDI+

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...
Forum: C# Mar 13th, 2008
Replies: 4
Views: 2,126
Posted By jonesc5
Re: Printing multiple pages, how?

TA DA! I'm back.

Ok so I wasn't 100% right but i was close

the printing method automatically keeps calling itself as long as e.hasmorepages = true.

So set e.hasmorepages to true somewhere in...
Forum: C# Mar 13th, 2008
Replies: 2
Views: 1,266
Posted By jonesc5
Re: passing by ref in foreach

sorted it by trial and error
easy really


foreach(photo currentphoto in thephotos){
photo tempphoto = currentphoto;
panel1.Controls.Add(new...
Forum: C# Mar 13th, 2008
Replies: 2
Views: 1,266
Posted By jonesc5
passing by ref in foreach

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...
Forum: C# Mar 13th, 2008
Replies: 4
Views: 2,126
Posted By jonesc5
Help Re: Printing multiple pages, how?

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...
Forum: PHP Feb 11th, 2008
Replies: 10
Views: 3,877
Posted By jonesc5
Re: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

yeah use single quotes for the last echo. Or put escape slashes in front of the "s in the link.
Forum: PHP Feb 11th, 2008
Replies: 10
Views: 3,877
Posted By jonesc5
Re: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

change the " on line 92 and line 102 into a ' then see what happens
Forum: HTML and CSS Feb 10th, 2008
Replies: 24
Views: 2,253
Posted By jonesc5
Re: Html

also it appears i can't type?

Too much coffee not enough sleep
Forum: HTML and CSS Feb 10th, 2008
Replies: 24
Views: 2,253
Posted By jonesc5
Re: Html

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...
Forum: PHP Feb 10th, 2008
Replies: 3
Views: 1,382
Posted By jonesc5
Re: SELECT Statement HELP

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"


$query = "select * from tbl_accounts WHERE 1=1";

while...
Forum: PHP Feb 10th, 2008
Replies: 10
Views: 3,877
Posted By jonesc5
Re: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

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.



echo 'look at all "these" double quotes that "are not...
Forum: C# Jan 26th, 2008
Replies: 8
Views: 1,198
Posted By jonesc5
Re: how to count how many Fridays in amonth

DateTime tempdate = new DateTime(month you want day 1);
int fridays = 0;
while(tempdate == month you want){
if(tempdate.day = friday){
fridays ++;
}
tempdate.addday();
}

all done, sorry it's in...
Forum: C# Jan 26th, 2008
Replies: 9
Views: 1,759
Posted By jonesc5
Re: Change Button Name

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...
Forum: C++ Jan 26th, 2008
Replies: 8
Views: 1,345
Posted By jonesc5
Re: making counter for odd numbers

Invisal, thats a really elegant solution. Puts my clunky string method to shame.
Forum: C++ Jan 25th, 2008
Replies: 8
Views: 1,345
Posted By jonesc5
Re: making counter for odd numbers

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.


int counter = 0;
string tempstring =...
Showing results 1 to 18 of 18

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:18 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC