Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How declare GotFocus() in grid
Message
De
15/07/1999 04:54:27
 
 
À
15/07/1999 04:44:50
Rolandas Jakeliunas
Kaunas University of Technology
Kaunas, Lithuania
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00241177
Message ID:
00241678
Vues:
23
Hi Rolandas.

>> I need declare function GotFocus(). My goal is refresh form every time, when move to next row. <<

Then how about putting this code in the AfterRowColChange method of the grid:

Thisform.refresh()

Of course, this code will execute even when you tab from column to column within a single grid row. So what you may want to do is add a custom property to your grid called nRecNo and set it to RECNO(This.RecordSource) in the BeforeRowCoChange. Then, before refreshing in afterRowColChange, you can check for This.nRecNo = RECNO(This.RecordSource) and only refresh the form when they are different.

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform