Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing all forms except 1
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00889593
Message ID:
00889596
Views:
16
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>When I click on menu item CLOSE I want to close all open forms except the one called STARTUP - how do I do this?
>
>Using VFP 6 & 7
>
>Thanks
>
>Colin Northway
Colin,
Try looping through the forms collection with something like
for each loForm in _VFP.Forms
	if vartype(loForm) = "O" and pemstatus(loForm, "BaseClass", 5) and loForm.Baseclass = "Form" and loForm.Name != "Startup"
		if !loForm.QueryUnload()
			return .F.
		endif
		loForm.Release()
	endif
endfor
HTH
Caroline
Caroline
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform