Please include the declarative part of your procedure. I suspect the problem is actually with v_button or v_ErrorMsg.