I meant to put this into the thread awhile back. It's a WARNING. We were accustomed to puting a lot of code into the Load method because in Fox2x this is what you did. All of our screens have been converted into VFP and we continued with the habit sometimes of using the Load to run some things.
This lead to a couple of big disasters! One instance was a simple Keyboard clearing routine. Under certain extreme circumstances we'd get a disasterous failure (1999 I think) and the failure can't be trapped. It took a while to determine where the failure generated from. Move the code into the Init method and the problem disappears.
In another form we were starting some DBI components from the Load method and sometimes, not always, this generated GPF's. Sometimes we had to reboot the compter. Once again, we move the code to the Init method and everything is fine.
In summary, get in the habit of using the Init method and leave the Load alone. Our failures were in VFP 6, but I assume VFP 7 has the same problem.
- Glen -
- Glen -
The impossible we do immediately.
The miraculous will take a little longer.