Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
>For functions too? Am I right by SET FUNCTION to myprog?
It seems you're missing some fundamentals here. There is no need to create a large procedure file with lots of procedures and functions in it. Create each procedure as a separate .PRG file. Do not start each of these files with the keywords procedure or function. Sometimes you might need to make an object with methods and properties that are specific to that object. You should not create an object just to have a place to put all procedures and functions (as methods). Having all of the prgs separate will allow you to more quickly edit and recompile those that you make changes to.
Don't do this...
MYPROC.PRG
Procedure proc1
blah
blah
blah
return
Function func1
blah
blah
blah
return blah
do this...
proc1.prg
blah
blah
blah
return
func1.prg
blah
blah
blah
return blah
The set procedure to command actually takes some time. You can work this way without any problems. There is a slight performance problem as Fox/VFP try to find the files on the drive. (Its so small its not worth worrying about) When it comes time to compile to a final exe, the performance will jump right back up.
Good luck.
Mike Yearwood
GE Capital Consulting
makers of Visual Maxframe Professional
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement