>>I am trying to default a combo box value to be a certain value upon a certain condition. The combo box is filled with an array that contains the names and associated user id numbers. When a user logs into the system, their user id number is put to a public user variable and I want to match that user ID with the user number in the array that fills the combo box. I still want the combo box to contain all the other users in the array but just default it to the user that logged in. Is there a particular function in Foxpro that will allow me to do this? Or is there another way to do this search? Any information would be greatly appreciated. Thanks.
>>
>>Jolene Dicks
>>Human Resources Development Canada
>
>If you mean that combo should show particular value in text portion when you start a form, then issue This.Combo1.Value="whatever" in Form.Init event (surely, "whatever" should be part of Combo.Rowsource).
I personally prefer to use Combo.DisplayValue for that.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison