Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When does ProgrammaticChange fire?
Message
From
16/09/2002 17:09:07
 
 
To
16/09/2002 13:25:13
Irv Adams
MSC Managed Care, Inc.
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00700846
Message ID:
00700979
Views:
19
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 !
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform