>>Just a quickie. Brain gone numb today. I rarely have the source of a combo as a value list. Now I have one with just 3 values to choose from. I have the form defaulting to value 1 and I want that text to appear in the combo, but all I get is blank. I've set the combo's .value to List(1) but no joy.
>>
>>I've forgotten how to do this. :-S
>>
>>How do?
>>
>>'ppreciate it
>>
>>Terry
>>
>>Hmmm, since writing I've explicitly told it this in code, in .Init() and it's worked, but you'd think that its prop's would do so for you, wouldn't you.
>
>A bug exists here. This should work:
>
>BoundTo = .F.
>Value = 1
>
>but doesn't.
>
>Workaround:
>
>
>* If RowsourceType # 5
>* set
>Controlsource = 'this.FirstElement'
>FirstElement = 1
>BoundTo = .F.
>* read DisplayValue as Value
>
>
>* in general
>
>DEFINE CLASS myCombo AS Combo
> StartIndex = 1
> ControlSource = 'm.this.StartIndex'
> HIDDEN ControlSource
> HIDDEN BoundTo
>ENEDEFINE
>
Thanks Fabio.
Like I said, I've got round it in code but I think that prop's should suffice.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.