Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button wont click after show
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01574948
Message ID:
01575411
Views:
49
>The forms are all modal. I think it stops because it never finished executing the Next button code, and doesn't want to run that code again.

Indeed. Controls prevent recursive execution of events in VFP. A better approach would be to move the call to the Show method outside of both buttons in a PRG with a DO WHILE loop. In the buttons only call Hide. This will continue execution in the PRG while and exit the button Click event. You can use a variable to keep track which of the two forms to show next and set this variable from the Click event.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform