Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retreive Relations in Form
Message
From
16/11/1998 20:20:58
 
 
To
16/11/1998 20:11:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00157722
Message ID:
00158087
Views:
18
>No, I was trying to figure out how to program the VCR buttons...
>
>What I think that I want to do is have a form that can show a parent table and a child table in two grids.
>>

Generally, if you use some vcr buttons then you don't need a grid to navigate the parent records. IMHO, the way to do this would be to use 2 grids, and forget the vcr buttons. If you go this way, all you have to do is figure out which cursor is the parent, and assign it to the top grid, and that should be it. (oh, and a THISFORM.Grid2.Refresh() in grid1's AfterRowColChange event)


>Perhaps I need a some stratigites on the VCR buttons.

Generally, a vcr buttons class either uses the current alias or (my preference) has a custom property that contains the name of the alias it should act on. So all commands would look like:

GO BOTTOM IN (THIS.TargetAlias)

f you use the second approach, you can use two sets of vcr buttons on the same form, one for the parent and one for the child. But as I said earlier, if you have two grids showing your records, you don't really even need one vcr set.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform