global gactivecode

on alertHook me, err, msg
  global gactivecode
  put err && msg
  foo = the text of member gActivecode
  num = the number of chars in foo 
  set the text of member gActivecode = chars(foo, 1, num-1)
  return 1
  
  
  -- go to the frame
end 