Hi,
DO FORM ("MYFORM")
REPORT FORM ("MYREPORT")
SET CLASSLIB TO ("Path\MyClasslib")
probably is technically the fastest way to change the behaviour the way Peter wants to.
But a change like this can cut the other way as well: If the called function is deleted from the exe, you can have a problem later on, since the project managers check is circumvented.
Since the time I had to take over a program where this "methology" was used
everywhere to keep the pjx files empty of excluded files, I am a bit leery of the approach: there was no way no recreate the projects and more than a few projects were "out of synch" referencing unneeded parts where the developers were afraid to change manually. Re-Architecting was not easy.
Also porting with a "recreate" was not an option <g>. Since then I allow this way of handling references (if the customer is adamant on keeping it or working without excluded files in the pjx) ONLY with compile time constants, so that you can easily change these from strings to names and have the project managers checks enabled again. I definitely prefer excluded files.
my 0.02 EUR
thomas