![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When I run this form normally, it does not work properly. When I try to select an item in the combobox, it somehow defaults back to the last item in the picklist. (The rowsourcetype is 6, Fields from a table in the form's data environment.) The other two controls that should be updated do not change. What's really mystifying is that if I step thru this process with the debugger, everything works as it should. The combobox behaves properly, the form method is executed, and the other two controls are updated. Anyone have any thoughts as to what's going on here? |
#3
| |||
| |||
|
|
Doug Schwarz <odougs (AT) alum (DOT) colby.edu> wrote: [snip] When I run this form normally, it does not work properly. When I try to select an item in the combobox, it somehow defaults back to the last item in the picklist. (The rowsourcetype is 6, Fields from a table in the form's data environment.) The other two controls that should be updated do not change. What's really mystifying is that if I step thru this process with the debugger, everything works as it should. The combobox behaves properly, the form method is executed, and the other two controls are updated. Anyone have any thoughts as to what's going on here? Just a guess, but are your controls getting properly refreshed? Having the debugger in circuit can result in more refreshes occurring, and this can make broken code work. (Hey, it really is a debugger. G>) Sincerely, Gene Wirchenko Computerese Irregular Verb Conjugation: I have preferences. You have biases. He/She has prejudices. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
OK, gang ... I have a form, containing a pageframe, containing several pages. On one of those pages is a combobox (dropdown list style). In the interactivechange method of the combobox is a call to a method of the parent form (a new method I've written). The form method does a bunch of calculations and then updates two other controls on the same page as the combobox. When I run this form normally, it does not work properly. When I try to select an item in the combobox, it somehow defaults back to the last item in the picklist. (The rowsourcetype is 6, Fields from a table in the form's data environment.) The other two controls that should be updated do not change. What's really mystifying is that if I step thru this process with the debugger, everything works as it should. The combobox behaves properly, the form method is executed, and the other two controls are updated. Anyone have any thoughts as to what's going on here? Thanks as usual -- Doug Schwarz |
#6
| |||
| |||
|
|
Another guess - you cannot Refresh() a control as long as its own InteractiveChange() is still in the calling stack. IOW, when your combo.InteractiveChange() calls a custom method and that method does a "Thisform.Refresh()" (or any container-refresh including the orginal combo), you'd get that "undo" effect. How is that different when running in the debugger ? |
#7
| |||
| |||
|
|
Another guess - you cannot Refresh() a control as long as its own InteractiveChange() is still in the calling stack. IOW, when your combo.InteractiveChange() calls a custom method and that method does a "Thisform.Refresh()" (or any container-refresh including the orginal combo), you'd get that "undo" effect. (Hm, bad English probably?... please post back if this was not well explained) hth -Stefan "Doug Schwarz" <odougs (AT) alum (DOT) colby.edu> schrieb im Newsbeitrag news:40B3AE12.6000905 (AT) alum (DOT) colby.edu... OK, gang ... I have a form, containing a pageframe, containing several pages. On one of those pages is a combobox (dropdown list style). In the interactivechange method of the combobox is a call to a method of the parent form (a new method I've written). The form method does a bunch of calculations and then updates two other controls on the same page as the combobox. When I run this form normally, it does not work properly. When I try to select an item in the combobox, it somehow defaults back to the last item in the picklist. (The rowsourcetype is 6, Fields from a table in the form's data environment.) The other two controls that should be updated do not change. What's really mystifying is that if I step thru this process with the debugger, everything works as it should. The combobox behaves properly, the form method is executed, and the other two controls are updated. Anyone have any thoughts as to what's going on here? Thanks as usual -- Doug Schwarz |
#8
| |||
| |||
|
|
Hi Stefan, Another guess - you cannot Refresh() a control as long as its own InteractiveChange() is still in the calling stack. IOW, when your combo.InteractiveChange() calls a custom method and that method does a "Thisform.Refresh()" (or any container-refresh including the orginal combo), you'd get that "undo" effect. How is that different when running in the debugger ? curious |
![]() |
| Thread Tools | |
| Display Modes | |
| |