Thank you for your help.
Yes, of course, I might have known. (I did, it just slipped my mind)
Now there is another issue with the combobox:
.Column3.SPARSE = .F.
.Column3.Combo1.BOUNDCOLUMN = 2
.Column3.Combo1.BOUNDTO = .T.
.Column3.Combo1.ROWSOURCETYPE = 6
.Column3.Combo1.ROWSOURCE = 'CountryPicker.cnty_name,cnty_no'
It's supposed to show let's say 'France' but store the value from the country's number, which for some reason, by way of legacy, is an integer and that can't be changed.
When the BoundTo property was set to false it showed the wrong country, Poland became Switzerland a.s.o., quite in accordance with the description, so I set it to true.
Now it shows the correct country, but if I pick another country the value is empty until the data are saved. Then it again shows the correct country, i.e. the one that was picked from the list.
What's to do about that?
TIA
Peter
>Hi Peter
>
>
>....
>FOR i = 1 TO .COLUMNCOUNT
> WITH .Columns(m.i)
> .RemoveObject('Text1')
> .ADDOBJECT('_Text1','_TextBox')
> ._Text1.visible = .T.
>* or STORE .ADDOBJECT('_Text1','_TextBox') TO ._Text1.visible
>* .CurrentControl = '_Text1'
> ENDWITH
>ENDFOR
>...
>
>
>Fabio
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)