03-19-2007, 07:30 PM
have some further questions
i am using this code 2 check
but i need it 2 do 2 more things
#1 when i stop the function reset the global variable used in the function
#2 next time the function is started need it 2 make sure that variable is not in use and if it is go 2 the next Variable
i am using this code 2 check
int i n=EnumQmThreads(0 0 0 0)
QMTHREAD* a._new(n)
for i 0 EnumQmThreads(a n 0 0)
,if _s.getmacro(a[i].qmitemid 1)="Function1"
,,int x
,,x+1
if x=1
,str+ cf
,cf=w1
if x=2
,str+ cf2
,cf2=w1
if x=3
,str+ cf3
,cf3=w1
if x=4
,str+ cf4
,cf4=w1#1 when i stop the function reset the global variable used in the function
#2 next time the function is started need it 2 make sure that variable is not in use and if it is go 2 the next Variable
