"I tried set procedure for the functions but it didn’t work"
What exactly didn't work Any error message
Maybe you're specifying the fullpath to the procedure file and doing that in such a way that long file name is failing (ie: macro expansion)
lcProcedureFile = "c:\my application\progs\vfputils.prg"
This would fail:
set procedure to &lcProcedureFile
this would do:
set procedure to (m.lcProcedureFile)