Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page Tab flips on it's own?
Message
De
13/11/1997 15:12:09
 
 
À
13/11/1997 15:04:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00059706
Message ID:
00060058
Vues:
43
>>>>>>>I am not opening the same form as I open on page1,page(a). I use hide and show to open and close the forms. It works great when I show the form when I am
>>>>>>>on page,page(b).. It is like it defaults the activepage to page,page(b).
>>>>>>
>>>>>>
>>>>>>The problem I'm having is that you keep say it is working fine
>>>>>>on the page 2,page(b). That is not true. You are opening a different
>>>>>>form when you are trying this on page two. You could try opening the
>>>>>>same form you have on page 1 - page b when clicking on the open button
>>>>>>on page 1 - page a. Maybe you will find out that there is something
>>>>>>within this one form that is causing a problem.
>>>>>>
>>>>>>Dan
>>>>>OK - I set it up so I am using the same form on both pages and I still
>>>>>have the problem.
>>>>
>>>>
>>>>I may not be of much help to you now. I would need to see the click event
>>>>to open and the click event of the close of the small form. If you click anywhere on page 1 - page a after closing the small form, does it switch over to the second page or just when you click the open on page 1 - page a.
>>>>
>>>>Dan
>>>thisformset.myform.show - to open
>>>thisformset.myform.hide - to close
>>>>If you click anywhere on page 1 - page a after closing the small form, does
>>>>it witch over to the second page or just when you click the open on page 1 - >page a.
>>>no
>>
>>
>>Now, set up a trace to fire on the second hit of the open button. Also fire the button with a key stroke such as "ALT+O". This will make sure that the
>>form is being fired a second time and not somehow activating the second
>>page.
>>
>>Dan
>You are not going to believe this, after 12 years of programming in clipper
>and 5 years in foxpro, in have never learned to use the debugger yet. I do not know how to set up a trace. How about a start...?


First make sure that the button is firing by using the ALT+O for open
instead of clicking on it. This will tell you for sure that it is the
call of the open form and not somehow activating of the 2nd page. Now
use an internal counter so that you can determine how many times
you have called the form. Then in the click event you could add
something like this to the top.

IF thisformset.pnFormStarts > 1
SET STEP ON
ENDIF

There are better ways to do this. VFP 5.0 debugger is more sophisticated than the VFP 3.0 debugger which I am using.

HTH

Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform