Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hotkey to Grid with child records
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00064356
Message ID:
00064383
Views:
29
>Rick,
>
>I've got a case where by default the user leaves one field and I want to but them into the next empty child rec in a grid. The LostFocus() of the textbox does:
>
>
> thisform.grdStages.SetFocus()
>
>
>Then the Grid.SetFocus() does some work and finally calls the Column SetFocus to get them into the grid cell:
>
>
>cGrid::SetFocus()
>
>* this method will look for the first empty date
>
>lnSelect = select()
>
>select stackstages
>locate for dEntered = {}
>
>if ( ! found() )
> * all dates filled in so just go to Yard stage
> goto top in stackstages
>endif
>
>select (lnSelect)
>
>this.coldEntered.SetFocus()
>
>
>What I'd to in your case is put code in the Form.KeyPress() to detect the hotkey.
>
>>An easy question:
>>
>>What is the best way to provide users with a hot key into a grid with child records?
>>
>>Thanks in advance,


I thought maybe I was missing something that was built into FoxPro (it should be). But, I guess not.
Richard DeZeeuw
DeZeeuw Software Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform