Could that be the public variable calls? If so, how do I clear them?
>Dimmed close box indicates that you did not clear some object reference you created somewhere within the form. It's usually some form/control custom property holding reference to another object. If you have such properties you must clean them in Form.Destroy event:
>***Form.Destory
>This.Myproperty=.NULL.
>
>>I am working on a form and never ran into this problem. I am having trouble closing (releasing) the form... it isn't happening. The form is rather straight forward and doesn't actually have much in it....
>>
>>FORM.LOAD
>>public array days(6,7)
>>public currdate
>>
>>
>>
>>FORM.INIT
>>
>>PARAMETERS passdate
>>
>>if parameters()=0
>> currdate=date()
>>else
>> currdate=passdate
>>endif
>>thisform.fillarray
>>
>>
>>FORM.FILLARRAY
>>
>>dayctr=1
>>for w=1 to 6
>> for d=1 to 7
>> if w=1 and dayctr<7 and d
>> days(w,d).caption=""
>> else
>> days(w,d).caption=alltrim(str(dayctr))
>> dayctr=dayctr+1
>> if dayctr>dayscurr
>> exit
>> endif
>> endif
>> endfor
>> if dayctr>dayscurr
>> exit
>> endif
>>endfor
>>
>>
>>It also has a container with 42 checkboxes in a grid format. The container has....
>>
>>CONT.INIT
>>
>>days(1,1)=this.d11
>>days(1,2)=this.d12
>>days(1,3)=this.d13
>>days(1,4)=this.d14
>>days(1,5)=this.d15
>>days(1,6)=this.d16
>>days(1,7)=this.d17
>>
>>days(2,1)=this.d21
>>days(2,2)=this.d22
>>days(2,3)=this.d23
>>.... etc
>>
>>
>>And that is basically it. What I have assumed.... the FORM.LOAD has created the public array to be used throughout. The CONTAINER.INIT assigns each checkbox (via the Name) to an array item for ease of use.
>>
>>When I run this form, their are no errors and the boxes fill in correctly. When I hit the CLOSE X on the form or I added a button with a CLICK event of THISFORM.RELEASE. The CLOSE X dims and nothing happens. The only way out is to shutdown VFP.
>>
>>Am I missing something for closing this all down? Do I need to play with a memory something or other? Am I blowing something out and it's getting lost?
>>
>>HELP!!!! Thanks
>>
>>Pete
>>
>>P.S. When I originally wanted to ARRAY the controls, Jim Booth helped with the CONTAINER and the INIT. He recommended creating a FORM property named BOX(1) but I received an error when I attempted that... this is why I used the ARRAY function as a public set of variables.
Peter Brama
West Pointe Enterprises
VFP is getting easier but STILL alot to learn!!