Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox: Setting Single Record as Value on Init
Message
From
10/10/2005 06:31:22
 
 
To
09/10/2005 14:33:04
Lynn Bleck
Cents-Able Business Systems
Concord, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057533
Message ID:
01057603
Views:
9
Rowsource is a table

Rowsource should be set up like this if RowSourceType is 6-Fields:

Alias.Field1,Field2

ControlSource is a memory variable init 0

What do you mean by that? You mean that it is Bound to a public variable? Or do you mean that it is bound to a form property.

You also did not tell me what the bound column of the list box is and what its data type is. If the BoundColumn of the list contains numeric data, you must set the list's BoundTo property to true.

This is just a basic list box control in a form using the form designer...I use them all the time, but never trying to default to a particular record. Usually I just set value to 1 so the bar is highlighted on the first record.

Something else must be going on here because it really is as simple as locating the record you want in the listbox's RowSource and setting the value of the ListBox.
Previous
Reply
Map
View

Click here to load this message in the networking platform