Information générale
Catégorie:
Codage, syntaxe et commandes
>>>It's very unreliable to Save from LostFocus event. What's happened if user will use mouse to change cells? Normally we should use buffering and tableupdate(),tablerevert() functions and referential triggers.
>>
>>Edward: Thanks for kicking in on this. I didn't make myself very clear, I'm afraid: the LostFocus method kicks in a Save() method that I wrote that invokes TableUpdate, etc. It does not add a new record if a blank one already exists. All of that works great. The problem is the SetFocus() method--I can't get it to set focus on the empty Description cell that has been created if the grid must be scrolled to get to it.
>
>do u know if you have to scroll ?
>can't u SEEK the record you need and then (if needed) call ACTIVATECELL or so?
>
>Arnon
Arnon:
Thanks for the help. I think you are right--I was letting the grid control handle all screen activity. ActivateCell may be the answer.
Again, I appreciate the assist.
John
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