Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box not behaving the same as other
Message
From
03/07/2006 10:41:57
 
 
To
03/07/2006 09:48:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01133388
Message ID:
01133417
Views:
13
>The char set-up works fine but, when I enter a numeric code in the operator text box, the combo is displayed in selected highlight, but with no text showing. I f I do it slowly in debug, I can se the combo, remaing unselected, with the correct val in, then it flips to the above.
>
>This tells me that the value that you are assigning to the combo box cannot be found in its internal list.
>
>Did you initialize the combo's value property to 0 in the property sheet and did you set its BoundTo property to .T. ?

Hi Marcia

THanks

I didn't assign an init. value to the combo, but it IS bound, to thisform.cOpCode.

However, initialising it to 0 had no effect.

(Neither had I initialised the other combo's value to "" though)

Interestingly, following the method via debug I see verything happen as should, and the combo displays the correct value, at the:
  With .cboOperators
    .Value = This.value
  EndWith 
line, then I follow the code to the end of the method. As soon as the last line has been executed, and it leaves the method, THEN the damn combo clears. Beats the hell out of me!
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform