Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Need help on index for items in Listbox



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Visual Basic Forum
View previous topic :: View next topic  
Author Message
VBKey



Joined: 20 May 2008
Posts: 2

PostPosted: Thu Jun 12, 2008 1:06 pm    Post subject: Need help on index for items in Listbox Reply with quote

Hi all, I spent near half a day could not work it out. My question looks very simple (might be very simple for you), here is a list box shown as followed:

apple
orange
banana
.
.
Lime
.
.

The order of this list could be changed by user, in the end, I need to assign the index of "lime" for example, to a text field (txtorder). Any idea? Thank you.
Back to top
View user's profile Send private message
sendtoanurag



Joined: 18 Mar 2008
Posts: 28

PostPosted: Fri Jun 13, 2008 1:21 pm    Post subject: Re: Need help on index for items in Listbox Reply with quote

Try This

For i = 0 To List1.ListCount - 1

If List1.List(i) = "LIME" Then
txtText1 = i
End If
Next
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Visual Basic Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap