Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I know which record in a grid has focus?
Message
De
04/02/2001 18:54:01
 
 
À
03/02/2001 08:00:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00472020
Message ID:
00472361
Vues:
45
Hi Cetin,

Thanks again. You're advice has turned out to be very useful. I actually identified why the first time into the gird wasn't working. I adopted Joel's technique of keeping track of the current record, and only running afterrowcolchange code if the selected record was different. I defaulted my starting value to -1, thinking that the current record cannot be negative one. But it turns out that the first time you go into the grid, before you've selected a record, VFP seems to set the record counter to -1! So I just changed my default record counter to -100 when the form first inits, and the problem is gone! One of those ugly bugs!

Thanks both of you for all your help - I got some great grid tips.

Take care,

dAvid
>>Cetin,
>>
>>Thanks much! That seems to work. I already had the form as a private datasession, i just couldn't get the right record to pass to it. That really helps. It just doesn't work the first time you go into the grid, which I can get around. All the other times it seems to work.
>>
>>Thanks again
>>
>David,
>w/o having the grid and code hard to estimate but try :
>select (thisform.myGrid.Recordsource)
>
>before getting key value. It might cure first time problem.
>Cetin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform