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:
00064378
Vues:
39
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,
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform