How to check an existance of a chart?
Unsolved
General and Desktop
-
-
@firsnur96 said in How to check an existance of a chart?:
Because if
chart_olstr[0]
is not exist my app crashIs
chart_olstr
an array or list or whatever? So check its length/count or whether it is empty before attempting to address element #0 in it.... -
@firsnur96
Look at the documentation for whatever actual type you mean by "array".If it is a C-array, it won't have any varying length/count. But then you know its size/what elements you put in, or you are maintaining your own count variable.