• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Brain Fog

 
Jackie Davis
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am having a bit of a problem with some simple java code. I'll just get on with showing you the code and explaining my problem.



Basically as I move the scrollbar(range: 1-10) I want to add the interval to the int a. The interval is calculated defined by 'calcValue'

My problem is that I want to assign 'calcValue' to a. As the scrollbar goes up this should contiually increase.

Hope I've explained this ok, if not please let me know and I will try and explain again.

Thanks
 
Jackie Davis
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorted it now.

The correction was

a += calcValue;

(if anybody was interested)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic