Does anyone see something wrong with this code- why it would work for some variables, but not others?

--
-- endSession
-- delete global variables associated with this session
--
on endSession
  put the namespace of this stack into tPrefix
  if tPrefix = empty then
    exit endSession
  end if
  set the itemDelimiter to comma
  repeat for each item tGlobal in the globalNames
    if matchText(tGlobal, "^" & tPrefix) then
      put "delete global" && tGlobal into tScript
      do tScript
    end if
  end repeat
end endSession

Sometimes, not always, I get this exception. It is always the case that I can do the same command from the message window without an exception.

 • There was an Execution Error at 11:36:47 AM
Error description:  do: error in source expression
Object: stack "libSessionMgmt" of stack "/.../...rev"
--------------------
do tScript
--------------------
Value: delete global vf__dateModified

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]



_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to