Information générale
Catégorie:
Codage, syntaxe et commandes
Irv-
I was going to reply with an example using EventTracking, but the real question seems to a little different.
ProgrammaticChange occurs when your code directly changes the value. I.e. this.value = someNewValue. InteractiveChange fires when the user makes a change.
You don't say what it is you need to do when the table is reverted, and that would make a difference. But it sounds like you would be better served by having a custom method that does whatever it is you need done, that can be called when it needs to be done. So, when you do a TableRevert, you'd also call this method. If programmaticchanges should fire the method, call it there, also. And so on.
Does that help?
>Thanks for your response, Victor.
>
>I have code in the Programmatic change,Interactive change and Lostfocus Events, actually, but it still doesn't fire on Tablerevert() until I visit (Setfocus) and leave (Lostfocus)...interesting...
>
>
>>It's probably the interactivechange() event that you want....I'm not positive but I think the Programmatic Change event only runs if you specificly change the values in the controls.... so you'd have to say something like txtbox.value = 'blah blah'...then it will run. Someone correct me if I'm wrong on this please...
>>
>>
>>>Hello Everyone:
>>>
>>>VFP 6.0 SP5; I do a Revert on a table followed by a Refresh(). This changes the value(s) in various txtBoxes, Combos, etc. on my Form to what they previously were, as expected.
>>>
>>>However, I thought this should cause the Programmatic Change event to fire for the appropiate Control(s); it doesn't seem to, any enlightenment?
>>>
>>>TIA !
Précédent
Suivant
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