I am trying to add graphs to our Inventory and got it working by month for each year. The problem is I can only do it once. I can bring up a bar graph for one year, clear it. When I click on the other year, the graph doesn't appear, but the Prompt for User Input does. I tried setting them at different locations, but that did not work.
2020
vChartNo = @StaticChart(CHART_TYPE_BAR, 470, 40, 300, 200, MTOTAL, "Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec")
Ans = @PromptForUserInput("Clear chart?","Y") If Ans = "Y" Then {StaticRemoveChart(vChartNo) StaticDrawClear(LE7)}
2021
vChartNo1 = @StaticChart(CHART_TYPE_BAR, 470, 40, 300, 200, MTOTAL, "Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec")
Ans = @PromptForUserInput("Clear chart?","Y") If Ans = "Y" Then {StaticRemoveChart(vChartNo1) StaticDrawClear(BAR CHART1)}
|