Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot quit visual Foxpro
Message
 
 
To
15/02/2005 09:24:45
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP1
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00986989
Message ID:
00987016
Views:
27
This is purely a guess since almost no one uses form sets, including me, but try putting CLEAR EVENTS in the Unload of each of your forms and/or at the formset level. In the INIT of the formset, you could have ON SHUTDOWN CLEAR EVENTS.

>hi,
>I have a problem and dont know how to solve it
>Kindly help.
>
>
>DEFINE CLASS formset1 AS formset
>DataSession = 1
>	AutoRelease = .T.
>	WindowType = 1
>	Name = "Formset1"
>	ADD OBJECT form1 AS form WITH ;
>		Top = 0, ;
>		Left = 0, ;
>		Height = 574, ;
>		Width = 799, ;
>		DoCreate = .T., ;
>		Caption = "Form1", ;
>		TitleBar = 0, ;
>		WindowState = 2, ;
>		Name = "Form1"
>	ADD OBJECT form2 AS form WITH ;
>		Top = 0, ;
>		Left = 0, ;
>		Height = 250, ;
>		Width = 381, ;
>		DoCreate = .T., ;
>		Caption = "Form2", ;
>		Visible = .F., ;
>		TitleBar = 0, ;
>		Name = "Form2"
>	PROCEDURE Load
>		_screen.caption = "test"
>		set sysmenu to
>	ENDPROC
>ENDDEFINE
>*
>*-- EndDefine: formset1
>**************************************************
>
>
>When I run the above and try to close the X on the right top i get "Cannot close visual foxpro" how can i prevent it other than using a main.prg for read events and clear events. Finally i put in a button and called thisformset.release to smootly end the program
>
>Any help would be appriciated
>
>Tia
>
>Suhashegde
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform