Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set dropdown row
Message
From
16/12/2002 19:21:04
 
 
To
16/12/2002 19:17:44
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00733494
Message ID:
00733496
Views:
21
This message has been marked as the solution to the initial question of the thread.
>I have a combolist that I populate with an array property. RowSourceType=5 and rowsoruce = this.iarowsource. I am using this as valid list for data input. The problem is when the value is null or empty, the drop down list goes to the bottom and then the user has to scroll back up the list. I tried setting the listinex to 1 and that worked except it updated the value that is bound to a column. What I want to do is force the selected position to the top without changing the value in the control.

When the value is null or empty, that would mean that your ID would be 0, assuming an Integer. You can create an additional item in your array to hold such a reference having a text label such as "Please, select". So, once you hit a record that has no value, you'll have it selected by default.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform