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