Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing a form from my menu
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Closing a form from my menu
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00997755
Message ID:
00997755
Views:
51
i have a simple app where there are a few different forms. all i want to do is close down a form from the menu. When i run the form i use the following syntax "do form xyz name xyz"

i am trying to use the following code but i get an error on the ELSE saying "object CUSTOMER is not found"

IF _screen.ActiveForm.Name = 'Customer'
_screen.ActiveForm.release
ELSE
Customer.RELEASE
ENDIF

what should i change the ELSE to?

thanks,

n.
Next
Reply
Map
View

Click here to load this message in the networking platform