ListBox identify selected item without looping in the whole list

jdlc

Registered User.
Local time
Today, 15:22
Joined
Mar 26, 2013
Messages
56
Hello Guys,

I do appreciate if somebody can show me the selected item in a Listbox without looping in the whole list, because my Listbox is multiselect and I want only the item that selected recently.

Thank you.
 
I would take a very bold guess and say it is not possible to show the Selected items in a listbox without looping through them. I'd be surprised if it were possible ! :eek:
 
I would take a very bold guess and say it is not possible to show the Selected items in a listbox without looping through them. I'd be surprised if it were possible ! :eek:

that's what I thought, I've search the internet and there's no luck to find an answer, I'll not close this thread hoping that someone can give me an answer. thanks boss.
 
You want the last selected item, or all selected items? You can get the last without looping.
 
thank pbadly for the quick response, the reason for me to ask that question is, i want to monitor if the active form and it's controls are in idle mode, because i want to boot out all user's who's using the system without doing anything for two hours so it will free up all the tables that they are using. the code that i have is fine and it is in my timer events, it can monitor if the system is idle for two hours, my delima is the listbox or combobox, the timer is keep on running if there are selections made, it didn't reset the counter (because timer read the same object name).

anyways i found a solution this morning. i declare a public varible (add it to the timer event) and it change the value if the listbox or combobox click event invoke and with this the counter reset to 0.

thanks a lot guys.
 
Glad you found an answer. That's probably along the lines of what I would have suggested, though I would have used the after update event (but the click event will probably be fine).
 
Glad you found an answer. That's probably along the lines of what I would have suggested, though I would have used the after update event (but the click event will probably be fine).

thanks boss, i spend almost a week searching for an answer which is not relevant to this problem, i didn't realized that a simple variable will solve it. :banghead:

sometimes in this kind of work you need a time out, just like a computer we too can get memory full and need to refresh or reboot just to make your brain work right. :)
 
sometimes in this kind of work you need a time out, just like a computer we too can get memory full and need to refresh or reboot just to make your brain work right. :)

Isn't that the truth! I'm in need of a reboot myself. :p
 

Users who are viewing this thread

Back
Top Bottom