03-23-2007, 03:05 AM
I can't seem 2 be able 2 rest global variables>I tried using atend that wouldn't work>any ideas?
Gin need help please!!
|
03-23-2007, 03:05 AM
I can't seem 2 be able 2 rest global variables>I tried using atend that wouldn't work>any ideas?
03-23-2007, 12:26 PM
here's how you can do it.
str+ a a="test value" out a a="" out a
03-23-2007, 06:06 PM
Ken that won't work i need 2 reset the variable when the macro ends
03-23-2007, 08:09 PM
you mean at the end of the code or even if something kills it?
post your code and i can tell you where to put it.
03-24-2007, 02:48 AM
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 this is the code i am using what i need it 2 do is reset only the global that is working in this function.but keep in mind there may be 4 or more instances of this function running at the same time
03-26-2007, 07:14 PM
any idea's on how 2 reset the variable when the function ends?
03-28-2007, 06:07 PM
Gintaras dou think u can help from the example i have give above how can i reset the var
that is assigned in the code,when the function ends?
03-28-2007, 06:24 PM
if you want to do it even if it is killed by another process or of it's own, you can use "atend".
03-28-2007, 06:26 PM
i tried using atend didn't work kept getting error
03-28-2007, 06:28 PM
when i used atend i got this error
Error in Function1: unexpected character.
03-28-2007, 06:34 PM
what's the code in that function?
03-28-2007, 06:39 PM
03-28-2007, 06:42 PM
i tried using this
atend gb=0
03-28-2007, 07:27 PM
atend is supposed to reference a macro or function name not code.
03-28-2007, 08:31 PM
ok i new that but what i'm asking is how 2 reset it fomr the function and not another function
|
« Next Oldest | Next Newest »
|