Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to refresh Current Page
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00752475
Message ID:
00752607
Vues:
9
Hi Gerard,
You must convert PageOrder to Index for collection Pages[].

You will add method Po2I to your pagaframe class:
* PROCEDURE Po2I()
LPARAM liPO
LOCAL liCO
FOR liCO=1 TO This.PageCount
    IF This.Pages(liCO).PageOrder=liPO
       RETURN liCO
    ENDIF        
NEXT
RETURN 0
*ENDPROC

thisform.pageframe.pages[thisform.pageframe.PoI(thisform.pageframe.activepage)].refresh
>Hi Dragan . thanks for your reply.
>
>.....thisform.pageframe.pages[thisform.pageframe.activepage].refresh
>
>I tried this but it does not seem to run the code in the activate event of the active page....is there a way of doing this. (I have the code in the activate which requeries a view.
>
>Regards,
>
>Gerard
>
>
>
>
>
>>>Is there a way to refresh the current page that is in view on a page frame.
>>>I have a control, outside the Pageframe, which controls what records are to be viewed. On the activate of the page, I set the key into the view and do a requery. This is ok as long as I click on the Page Tab, but If I happen to be on the page (could be any page on the page frame)I need to run the activate of the current page:
>>>
>>>Something like would do the trick if its possible:
>>>
>>>Thisform.PageFrame.CurrentPage.Activate
>>>
>>>Thanks for any assistance
>>
>>Close...
>>
>>thisform.pageframe.pages[thisform.pageframe.activepage].refresh
>>
>>You may as well run any other method on a page. Also, programmatical setting of pageframe.activepage=n will activate the page and run its .activate code. This also doesn't mean an automatic refresh - you have to call it. To make things easier, thisform.refresh will refresh the active page (and call its .refresh code).
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform