Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox
Message
From
14/01/2002 07:06:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Combobox
Miscellaneous
Thread ID:
00604206
Message ID:
00604206
Views:
69
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
Next
Reply
Map
View

Click here to load this message in the networking platform