AndrewMozley
Programmer
I would like to create one or more function libraries for use within a project. For example there would be a FormatDate() function, and many more project-specific functions.
I can create a .prg file with the functions defined and compile itinto a .fxp file. Am I then able to create a library file myfuncs.lib and put several .fxp files into it? If so, how do I do that please?
Then in my application I would like to be able to say
SET LIB TO MYFUNCS.LIB
and later on
cDisplay = FormatDate(DATE())
. . . that sort of thing.
I can create a .prg file with the functions defined and compile itinto a .fxp file. Am I then able to create a library file myfuncs.lib and put several .fxp files into it? If so, how do I do that please?
Then in my application I would like to be able to say
SET LIB TO MYFUNCS.LIB
and later on
cDisplay = FormatDate(DATE())
. . . that sort of thing.
(I am aware that I can create a define a class, create functions within that, then instantiate the class and call one of its functions.
oMyFuncs = CREATEOBJECT("MyFuncs")
cDisplay = oMyFuncs.FormatDate(DATE())
But I was rather hoping to call the function directly, if that is possible.)
Thanks. AndrewoMyFuncs = CREATEOBJECT("MyFuncs")
cDisplay = oMyFuncs.FormatDate(DATE())
But I was rather hoping to call the function directly, if that is possible.)