Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 11th, 2005, 3:30 AM   #1
killcity44
Newbie
 
Join Date: Feb 2005
Posts: 18
Rep Power: 0 killcity44 is on a distinguished road
changling list box data

does anybody know how to change selected data in a list box to text that is in a text box.

thanks
killcity44 is offline   Reply With Quote
Old Apr 11th, 2005, 2:00 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
This will work:
If List1.ListIndex > True Then ' Is something selected
    List1.List(List1.ListIndex) = Text1.Text
End If
Rory is offline   Reply With Quote
Old Apr 21st, 2005, 12:56 AM   #3
Bharathi
Programmer
 
Join Date: Apr 2005
Posts: 32
Rep Power: 0 Bharathi is on a distinguished road
Smile Book may help you

Hi,


Application Series Books teach the reader how to develop an accounting package for a client server network. These books also teach all the secrets and logics required to develop an accounting package.



Regards
Bharathi
Books for developing your own Accounting and Inventory Management Application.
http://www.vkinfotek.com
Bharathi is offline   Reply With Quote
Old Apr 21st, 2005, 11:51 AM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally Posted by Rory
If List1.ListIndex > True Then
How can something be greater than a boolean? Don't you mean this? :
If List1.ListIndex > -1 Then
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Apr 21st, 2005, 12:07 PM   #5
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
No, I did mean > True (that's why listindex can read as -1 it's actually true, not -1 according to MSDN). Anyway, I like my wierd coding practices. Leave me alone!
Rory is offline   Reply With Quote
Old Apr 21st, 2005, 12:34 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Fine...
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:27 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC