![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Expert Programmer
|
To modify an item in a list you do:
List1.list(n) = "Contents" |
|
|
|
|
|
#12 | |
|
Newbie
Join Date: Apr 2005
Location: The Netherlands
Posts: 20
Rep Power: 0
![]() |
Quote:
the if (blab) then 'do nothing else this is totally gay, use NOT instead - for real... also this stuff is not foolproof if you put 'asd' in the textboxes the app will crash(presumably) try to work around this by checking the ascii codes txtAsd_Change(?) if asc(mid(txtAsd.text,len(txtAsd.text)-1,1)) < 48 OR > 57 Then txtAsd.text="" end sub i haven't programmed in vb that much lately but this should get u started and perhaps help you out a bit if you need anything more just post here |
|
|
|
|
|
|
#13 |
|
Expert Programmer
|
IsNumeric() would also work!
|
|
|
|
|
|
#14 |
|
Newbie
Join Date: Feb 2005
Posts: 18
Rep Power: 0
![]() |
works fine now thanks, except for the list box modification part. I have a text box and a list box with a few entries. I want to change the list boxes selection to what's i the text vox,
hope that explains that clearly |
|
|
|
|
|
#15 |
|
Expert Programmer
|
I believe
lstMain.List(lstMain.ListIndex) = txtMain.Text |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|