Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Does the value of thisform.currec change when you do append blank? If so your GOTO is saying go to where you are.What happens if you set a variable to RECNO() when you start and then GOTO that variable?
>When I rightclick() the grid on page1, I execute the following:
>
>thisform.currec = RECNO()
>DO CASE
> CASE tnBar = 1 &&Add
> APPEND BLANK
> this.pageframe1.page2.enabled = .T.
> this.pageframe1.page1.enabled = .F.
> _screen.activeform.closable = .F.
> this.pageframe1.activepage = 2
>
>I hit the cancel button on page2 to execute:
>
>tablerevert()
>GOTO thisform.currec
>thisform.pageframe1.page2.enabled = .F.
>thisform.pageframe1.page1.enabled = .T.
>thisform.pageframe1.activepage = 1
>
>The activate event of page1 is:
>
>thisform.pageframe1.page1.grdperson.column2.setfocus
>_screen.activeform.closable = .T.
>thisform.refresh
>
>When I cancel from an edit it works fine, but the pointer never really moved.
>If I save an Add, it also works fine.
>
>Thanks for your help
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement