![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 18
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Expert Programmer
|
This will work:
If List1.ListIndex > True Then ' Is something selected
List1.List(List1.ListIndex) = Text1.Text
End If |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Apr 2005
Posts: 32
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#4 | |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Quote:
If List1.ListIndex > -1 Then |
|
|
|
|
|
|
#5 |
|
Expert Programmer
|
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!
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|