Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox
Message
De
14/01/2002 07:06:43
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Combobox
Divers
Thread ID:
00604206
Message ID:
00604206
Vues:
65
I have a combobox with this configuration:

.mycombo.Style = 2
.mycombo.BoundColumn = 2
.mycombo.BoundTo = .T.
.mycombo.RowSourceType = 2
.mycombo.RowSource = 'myCursor'

muCursor have 2 columns and 3 rows
ABREV CODE
Min 001
Med 002
Max 003


In my program i have this code:

WITH Thisform
.....
cNewValue = '001'
.mycombo.Value = cNewValue
.....
ENDWITH

The first time i execute this code, mycombo accept de value em display Min, but if i repete several times the code changing de mycombo value with '001' or '002' or '003', some times mycombo display ' '. Why?

If i change my program as fallow, mycombo assumes alltimes the correct value and display the correct ABREV:

WITH Thisform
.....
cNewValue = '001'
.mycombo.Value = cNewValue
WAIT WIINDOW cNewValue
.....
ENDWITH

Thank's
[]'s
ifm@oninet.pt
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform