Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search Form Replays
Message
 
To
12/03/1997 02:56:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00023680
Message ID:
00023854
Views:
26
>>>OK, y'all, here's the deal: when the user presses the search button on my toolbar, I pop up a search form on top of the existing form. There is a button on the search form that allows the user to switch indexes. Say, for example, that the user invokes the search from the Customer form. The default search is by Customer Name, and the button's caption is "Cust. #". If the user presses this button, I Release and Destroy the search form and call it again with an entirely new set of parameters. The caption on the button is now Cust. Name. Everything works great. BUT: when the user finally accepts or cancels, I get a rapid replay of each search form invoked. If the user switches back and forth between indexes 4-5 times, the search form flashes 4-5 times before returning to the original form. In Darwinian terms, ontogeny recapitulates phylogeny.
>>>
>>>How do I stop this evolutionary behavior?
>>
>>Can you work a LockScreen into this somehow?
>
>Bruce:
>
>Thanks for the suggestion. I'll try it to see if it works. Am curious as to *why* the forms replay on exit. I thought that a form, once released, was gone forever.
>
Well, it should be, unless it wasn't completely released like a bug in vfp3 caused. BTW, are you using 3? I had forgotten there is a Release bug, and it's just about exactly as you describe, when you open a form from the same object twice in succession release fails. A workaround is to use a different button, making each one invisible at appropriate times, I believe...or maybe the lockscreen idea would work too...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform