Hi Dan changed to extern and fixed the warning about the naming conflict tested ok change line 35 to the number you need extern int All_Bars = 1000;