Closing Text Editor Object with Procedure


#1

I have a Text Editor Object that has procedure code set to execute when closed with tab or return. This works great unless the Text Editor Object is left active and a button on the form is pressed that executes other code. I have put “closeactiveobject” in the code for the button, I have tried

starttimer "closeIt",
"code",{activeobjectaction "close"},
    "repeat",1,
    "scope","window"

with no success. It seems the Text Editor Object with a variable or field will not update if there is a procedure with it. It does update if no procedure.

Thoughts?