User-defined functions are not allowed (Error 1097)

User-defined functions are not supported in this area of Visual FoxPro.

Remove the user-defined function.