Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays and Combo Boxes
Message
From
10/03/1998 08:48:03
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00083330
Message ID:
00083594
Views:
21
>>>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

It depends. You know my approach, I use Value(s), so it's paid for me to set it one extra time :)
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform