Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox with negative value ???
Message
 
 
À
08/06/1998 02:57:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00103942
Message ID:
00105780
Vues:
40
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform