>>Hi Nancy,
>>I figured that out, but I was hoping someone had thought of a way to accomplish what I wanted. I finally figured something out.
>>
>>Instead of putting "_DV" into the property sheet, in the form.load() I put "this.lDV = this.lDV and _DV". That way I can change lDV in the property sheet and it affects every method in the form.
>
>Er...Okay. I'm glad you solved the problem, but I guess I don't see what _DV is doing. What is DV?
In my default include file:
#DEFINE _DV ( VERSION( 2 ) = 2 and _VFP.STARTMODE = 0 )
It tests to see if I'm in developement mode. But I want to turn it off when I'm testing a form to make sure I haven't accidentally left something in the form that I don't want the user to see.
Now I just change the property sheet "lDV = .F." and it turns off all the developement stuff in the form, and I just reset the property to .T. to turn them back on.
Bill Morris