General information
Category:
Forms & Form designer
You could try to put your code in the activate event of Page2.
Anyway when and how do you fill your CursorTempB ?
Remember that the use of the set filter command could take a lot of time to show your data, maybe you'd better build a temporary cursor in which you store the record to show with a scan --- endscan loop
>Hi all
>I have a form with one PAGEFRAME on it. the pageframe have two page and on each one i have a grid. i want to when i select a row in page1.grid1 and press a key (ie F12) the page2 be active and related data show in page2.grid1. all things work good but sometimes the page2.grid1 is empty and only when i press UPARROW key the data is appear in grid.
>here is my code :
>
>
>SELECT &CursorTempB
>SET ORDER TO tag rbnum
>
>SET FILTER TO rcode = 2
>
>LOCATE && for go to top
>
>thisform.pageframe1.page2.grid1.Refresh
>thisform.pageframe1.page2.grid1.SetFocus
>thisform.pageframe1.page2.grid1.AfterRowColChange
>thisform.pageframe1.page2.grid1.ActivateCell (1,1)
>
>
>what is wrong?
>Thanks for your help
Previous
Next
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