Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About grid
Message
From
17/11/2004 11:18:15
 
 
To
17/11/2004 11:07:20
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows '98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00962234
Message ID:
00962241
Views:
8
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
Map
View

Click here to load this message in the networking platform