Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to allow users to rename the item in the list box.
Message
 
 
To
13/11/2002 15:18:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00721778
Message ID:
00722349
Views:
16
>I think you still need the index. SelectedId() returns .T. or .F. based on SelectedId(nIndex).
>
>Also, if your list is sorted, the id gets messed up and SelectedID(3), for instance, could return what, to the user, looks like item 5 or 10 or whatever. I guess that would likely not matter much, but it feels counterintuitive to me (on a sorted list).

You're right. I just made an experiment. SelectedID worked without index, but returned .f. I added SelectedID(1) and it returned either .f. or .t. I think, it's weird, that ListBox doesn't have SelectedID property to return the item selected in case of MultiSelect = .f. Or it could be an array property. Sounds silly to always iterate through the list if we want to find out items selected. Some internal array property would be nice, do you think?

Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform