*Never start a .prg with FUNCTION or PROCEDURE parameter p1,p2,p3,p4 return ''That way you never have to SET PROCEDURE TO before it is called and you never have to RELEASE PROCEDURE after. USE yourfile exclusive will work as long as function1.prg is in the VFP search path or is built into the exe.
>function function1 >parameter p1,p2,p3,p4 >return ' ' >endfunc>then
>set procedure to function1 additive >use yourfile exclusive>Then you must check the index expressions, and delete the tag based on function1. After you have deleted the tag, you can
>release procedure function1 >eras function1.*>