General information
Category:
Forms & Form designer
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only