Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame.Page.Activate looped calling?
Message
From
08/10/2001 09:28:46
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00565350
Message ID:
00565451
Views:
16
When I use the debugger it functions properly.

>Hi!
>
>I do not know for sure, however, following some ideas.
>
>Do you have ActiveX controls on the form?
>Do you know the exact code line which cause Activate event of the page to fire again? To fgure out the code line, open the Output debuggin window, then switch on the events tracking just before the activating that page. Click (or do) whatever required to fire the process of activating that page. After you see the process loops, stop execution of the program by debugger (Esc key in debugger, note that SET ESCAPE should be ON and ESC key should not be caught by your code). Save the content of Output window and look to events that preceed immediately Activate event of the page. Then look into the code to see what can cause that. If you will not be able to determine the exact code line from which Activate called, switch on the coverage profiling and examine the code of method at that moment.
>
>HTH.
>
>>HELP!! I have a form with a pageframe. In one of the pages ACTIVATE method, I call a couple SQL SELECTS that build up a couple cursors as well as preloading some data.
>>
>>Somehow, I am getting into a continuous loop into the ACTIVATE function where the only way out is the dreaded CTRL-ALT-DEL.
>>
>>If I step through the code with the debugger - it fires fine. What am I missing here. I thought the ACTIVATE only fires when that page on the pageframe comes active - once, shouldn't it under normal cicumstances? If it matters, I get to that page by calling....
>>
>>thisform.pageframe1.activepage=4
>>
>>
>>I put a WAIT WINDOW in the ACTIVATE so I could see if that was what was looping. Could a WAIT WINDOW or a SETFOCUS (for a listbox on this page), cause the ACTIVATE to fire multiple times?
>>
>>Hope someone knows what I am doing other than going nuts!!
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform