Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox Question

Status
Not open for further replies.

amills

Programmer
May 30, 2003
22
US
In the list box properties you can select LISTINDEX=1 to have the first record be selected. How do I position the list box to have the last item in the list box highlighted. The listbox can have anywhere from 10 to 100 or more records ?


Andy
 
Set Selected Value:
Thisform.list1.DisplayValue=4 &&item count to select

Test if 4th Value is selected:
?Thisform.list1.selected(4,1)
or
?Thisform.list1.ListItemId

Read Actual Value:
?Thisform.list1.Value

I believe the answer to your question is this snippet:
Thisform.list1.DisplayValue=Thisform.list1.ListCount

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top