How did you bypass d the error when the form's data environment tries to load? Mine displays a messagebox (fox message) that it cannot open the tables in the data environment because the table is already in use and then exits. I never get to the messagebox in the load or init of the form itself. I tested his code on VFP7 SP1 Windows 2K SP3.
Tracy
>I tested your code with VF 7, SP 1 and Windows XP.
>
>After the messagebox, foxpro dies, no C0000005 message, just dies.
>
>Moving the code from the load to the init solves the problem though.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"