Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hotkey to Grid with child records
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00064356
Message ID:
00064383
Vues:
24
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform