Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Completely stumped
Message
From
31/07/2000 14:45:03
 
 
To
31/07/2000 14:34:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00398904
Message ID:
00398928
Views:
20
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
Map
View

Click here to load this message in the networking platform