03-18-2007, 02:22 AM
here's how you can get all the threads running.
Display all threads
int i n=EnumQmThreads(0 0 0 0)
ARRAY(QMTHREAD) a.create(n)
for i 0 EnumQmThreads(&a[0] n 0 0)
out _s.getmacro(a[i].qmitemid 1)
but have you thought about this...when you start the function have it add 1 to a global variable; when it ends have it subtract 1 from that variable. then you can always have a count of how many are running.
Display all threads
int i n=EnumQmThreads(0 0 0 0)
ARRAY(QMTHREAD) a.create(n)
for i 0 EnumQmThreads(&a[0] n 0 0)
out _s.getmacro(a[i].qmitemid 1)
but have you thought about this...when you start the function have it add 1 to a global variable; when it ends have it subtract 1 from that variable. then you can always have a count of how many are running.