Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / problem with tutorial 5 gradient boxes

Author
Message
madness chuckles darkly
12
Years of Service
User Offline
Joined: 1st Feb 2012
Location:
Posted: 1st Feb 2012 19:59
Hello

I am having trouble with this code. Could someone please proof read it and find the error that is causing the code to not run. Thank You.

Lucas Tiridath
AGK Developer
15
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 1st Feb 2012 21:24
Hi there. The problem is that when you run your first line



you are implicitly declaring the varibles red green blue and white as integers simply by using them without explicitly declaring them. Thus, when you then do explicitly declare them later on



the compiler tells you that you can't declare the variables twice. So you need to put the first line after the declaration. Hope that helps.

madness chuckles darkly
12
Years of Service
User Offline
Joined: 1st Feb 2012
Location:
Posted: 6th Feb 2012 19:30
thank you

Login to post a reply

Server time is: 2024-05-09 10:12:56
Your offset time is: 2024-05-09 10:12:56