Dmitry,
You can run a query against sysobjects. You can also try running sp_help TheSPName I think you'll get back an empty cursor if the sp doesn't exist.
>Say I have a function SP_MYFUNC in the VFP STORED PROCEDURE.
>
>How do I determine in code, at run-time, if such function exist?