Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighting row in ListBox
Message
From
22/10/2003 09:03:22
 
 
To
22/10/2003 08:46:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00840979
Message ID:
00840984
Views:
20
>I have a listbox in a form. Elsewhere on the form, there is a button to "add" an element to the list; when this is pressed, a new form appears to enter the data for the new element. When the user presses "OK" on the new form, the data entry form closes and the listbox refreshes itself and now also displays the new element. None of the elements in the listbox, however, are chosen/highlighted.
>
>I want the last element entered to be highlighted/chosen. Where/what code do I need to add in?
>
>CM

Hello Chris;
procedure mylistbox.refresh
with this
    .listindex = .listcount
endwith
HTH


Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform