|
-
Jan 16th, 2002, 07:45 PM
#1
Thread Starter
Member
Need simple help w/ lists
What would i use for the text that is being highlighted in a list?
(ex-- List1.????)
-
Jan 16th, 2002, 07:49 PM
#2
Type in List1.
and you will see a list of available methods etc.
eg.
VB Code:
Private Sub Form_Load()
List1.AddItem "test"
End Sub
Private Sub Command1_Click()
Text1.Text = List1.List(0)
End Sub
________
FAT GIRL LIVE
Last edited by Bruce Fox; Aug 14th, 2011 at 04:12 AM.
-
Jan 16th, 2002, 07:56 PM
#3
Better example:
VB Code:
Private Sub Form_Load()
With List1
.AddItem "One"
.AddItem "Two"
.AddItem "Three"
End With
End Sub
Private Sub List1_Click()
Text1.Text = List1.List(List1.ListIndex) ' Places the Selected item in the TextBox
End Sub
ListIndex is the returned 'index' of a 'selected' List item
________
Herbalaire review
Last edited by Bruce Fox; Aug 14th, 2011 at 04:13 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|