Hi all. 

I have a behavior script with a handler:

local cTableName, cDGName, cPriKey, cAltTable1

on getStackConstants pParentStack
   -- retrieve stack constants from stack property
   put the stackConstants of pParentStack into aStackConstants
   put the keys of aStackConstants into tConstantList
   
   repeat for each line tConstant in tConstantList
      do "put " & quote &  aStackConstants [tConstant] & quote & " into " & 
tConstant
   end repeat
end getStackConstants

When I trace the handler, it does indeed set the values for the local 
variables, but as soon as the handler exits, the script local variables are all 
reset! This does not happen when I do the same thing in an object script. Is 
there something about behaviors preventing script local variables from 
retaining their values??

Bob S


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to