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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement