Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box - selected item
Message
From
26/09/1998 08:30:36
John Thomason
King Richard Veterinary Centre
Leicester, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
List box - selected item
Miscellaneous
Thread ID:
00141114
Message ID:
00141114
Views:
49
I am using a list box to look up information in another table. The idea is that on entry to a text box an associated list box should open displaying lookup values which start at the value already displayed in the text box. The lookup table is a list of increasing numbers ie 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 65. The rowsource of the list box is set to a view of the table and I have used code to move the record pointer in the view to the same value as the text box. What I can't do is get the list box to select this value on being displayed. For instance, if the value in the text box is 48 I want 48 to be highlighted in the list box so that if I only wanted to change the value in the text box by one in the series i.e. 50 from 48 I would only have to move the record pointer in the list box down one record rather than from the start of the list.
Can anyone help?

J.Thomason
Next
Reply
Map
View

Click here to load this message in the networking platform