Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Procedure to X question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Set Procedure to X question
Miscellaneous
Thread ID:
00113162
Message ID:
00113162
Views:
50
I have a prg file that holds alot of functions that are used by many forms within my app. I have one particular form that I put "set procedure to lsfuncs additive" in the init method of the form. Everything worked fine until once I had the form open and then opened another form and I got an error that a function wasn't found. I have realized that I have some forms that I issue the set procedure to in the init of the form and I have other forms that I load the same procedure and then release it when I am finished with it.

I am just realizing what a problem this is considering the user could open one form and then open another on top of it that could release the procedure, and the original form is expecting the procedure to still be loaded.

I am wondering if I have a couple of these prg files that contain app specific functions should I load these in the instance of my application object and leave them open for the life of the application?

Or is it better to just load and release the prg many times throughout the application on an as needed basis?

Any thoughts?

TIA

paul
Next
Reply
Map
View

Click here to load this message in the networking platform