Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox ProgrammaticChange not firing
Message
From
22/08/1997 08:52:02
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00046325
Message ID:
00046365
Views:
30
>>>I have a combobox that doesn't seem to fire the ProgrammaticChange. InteractiveChange event fires OK when I physically change the item in the combobox but when I scroll the main table, the value in the combobox changes appropriately but doesn't fire the ProgrammaticChange event. I need to trap this event so that I could display other information pertaining to the value in the combobox. Anyone know why?
>>>
>>>TIA
>>>John.
>>
>>Check the Help on ProgrammaticChange. I think it only fires when you make a change in code, not when you're refreshing the combo. Try putting the code in the Refresh event.
>>
>>HTH
>>Barbara
>
>Thanks Barbara. As usual, the "White Knightengale" quickly comes to rescue!
>
>This problem is not that simply. First, I'm not just Refreshing the combobox but in fact is changing the value by moving from record to record of the controlsource table. Second, and this is most interestingly frustrating, I had originally created a plain form (not from class) and the ProgrammaticChange worked when I moved from rec to rec. However, when I choose another value from the combobox, it seemed it wasn't firing the InteractiveChange event. After wasting hours trying to figure out why, I try to save the form as Class and create another form based on this class with exact same DE. Now, it seems InteractiveChange seems to fire OK but not ProgrammaticChange event! What's going on I'm saying??? Is it too much to ask to have both features be able to fire??? I can't be the only one ever to use the combobox in VFP 3.0???
>
>Desperately serious,
>
>John

There is one thing to make combobobox true: not to use ControlSource property.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform