Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox with negative value ???
Message
 
 
To
08/06/1998 02:57:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00103942
Message ID:
00105780
Views:
39
Carlos,

I have indeed tested it under VFP5 SP3, but jumped to an early conclusion based on the character vs. numeric value because you said it was returning char values.

After some more testing this morning, all you need to do is add a bit of code in the ProgrammaticChange method. Something like:
if ( this.Value < 0 )
   this.ListIndex = SomeAppropriateLookupFunction( this.Value )
endif
This will cause the cbo DisplayValue to show the correct item instead of blank. All along the cbo.Value was correct, it just wasn't displaying properly.

>I have done this from the beginning. I have 0 to initial value of the combo. But still doesn't works. I think you have not tested it. Thanks anyway.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform