Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re-used ComboBox losing the ControlSource value

Status
Not open for further replies.

KarenLloyd

Programmer
Nov 23, 2005
141
GB
Hi Folks

I have a strange problem in VFP6 (it's me - not a bug) - I wonder if anyone can shed some light please.

I have a selection screen which is a form (this is all manually programmed) with various text boxes and drop-down lists. This has been operating perfectly well for a few years. From the selection criteria I move to another program which displays a grid with updating and reporting options.

When finished, the prog loops round and runs the selection screen again. The variables are initialised beforehand or are public and the selection program hasn't changed. What has changed is the update routine, which used to be a browse window and is now a grid routine.

On returning to the selection screen, the drop-downs show the correct info, they have getfocus rebuilding code in them, but when I move to another control, the value I just selected from the combo is cleared and lost - the variable length goes to 0 "".

When selecting the combo box, the scrollbar very (very) quickly flashes from the right to the left hand side of the dropdown as tho it has cleared somehow. But the list values stay correct.

The grid has been released and the files re-opened and the combo lists rebuilt. What else could I need to clear after leaving the grid in order to get my form to behave as before?

I hope thats a good enough explanation of the problem. Any thoughts on this would be appreciated.

Karen
 
Not to worry - it was something to do with setting the Value property of the ComboBoxes.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top