Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble closing (releasing) form - HELP!!!
Message
De
26/10/1999 21:45:41
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00281960
Message ID:
00281990
Vues:
19
Dropped in, edited, and the checkboxes were added to that by dropping in.




>How was your container added to the form? Programmatically or by dropping it on in the form designer?
>
>Barbara
>>Barb,
>>
>>Nope none of those are used. The actual code listed is all I have.
>>
>>
>>
>>
>>>Peter,
>>>It won't close because there is an object reference that hasn't been released. Do you use 'Addobject', 'Newobject' or 'Createobject' on the form? If so each object must be specifically released.
>>>
>>>HTH
>>>Barbara
>>>
>>>
>>>>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!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform