>>>What do you mean "call this function from SP" - do you want to call one stored procedure from another stored procedure?
>>
>>No, I just want to run the function from the database and make sure that VFP set path or set('procedure') is not searched to find this function.
>
>For instance, if I have it in SP and in the program that is in set('procedure'), the one from set('procedure') was executing.
Check this:
Visual FoxPro Invocation Stack
http://fox.wikis.com/wc.dll?Wiki~TopicTextSearch~VisualFoxProInvocationStackCarlos