Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting a list item
Message
From
18/03/1998 17:16:00
 
 
To
18/03/1998 17:10:07
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00085495
Message ID:
00085499
Views:
25
>I have a pull douwn list box that I set the RowSourceType to 0 and set the list items by AddListItem()
>
>AddListItem("Hawaii", 2)
>AddListItem("Alaska", 3)
>AddListItem("Pacific", 4)
>AddListItem("Mountain", 5) etc.
>
>I set the ControlSource to a poperty (.timeZone)
>
>If I change the value of .timeZone to,say, 4, the List box will display Mountain (the fourth item), not Pacific (ListItemId). How make the ControlSource operate on the ListItemId and not the ListItemIndex?
>
>Ed

This case you don't need in specific property. If you clean up ControlSource and issue Thisform.List1.Value="Pacific" then you will get it and so on. If you like numbers, you can create second column with them and bind value to this column.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform