Hi Moises...
If you remove "_myfunction" in the line SET PROCEDURE TO, so it only says:
SET PROCEDURE TO Function.Prg
>I've created a function called "Myfunction"
>then I kept this function into a file
>named function.prg
>
>then I called it as shown bellow:
>Set procedure to function.prg_myfunction
>aa = myfunction (variable)
>It worked OK
>
>But there's a problem when I use the
>option BUILD.EXE:
>
> File function.prg_myfunction - Undefined
>
>Where is my mistake ?
Benn Kjaer
MS Certified Professional - Visual Foxpro
"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"