Total count of open charts

Back to topics list To post a new topic, please log in or register
avatar
25
sdoppke 2015.09.22 03:00
 
Would someone help me with some code to return total open chart count?
avatar
125
zirkoner 2015.09.22 13:55 #
 
   int count=0;
   long chartid=ChartFirst();
   
   do
     {
      chartid=ChartNext(chartid);
      count++;
     }
   while(chartid!=-1);

avatar
12985
WHRoeder 2015.09.22 15:16 #
 
int count=0;
for(long chartid=ChartFirst(); chartid != -1; chartid=ChartNext(chartid) ) count++;

avatar
25
sdoppke 2015.09.22 18:33 #
 
I really appreciate both of you, this helped immensely. 
Back to topics list  

To add comments, please log in or register