Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Initial Value in Drop down list.....
Message
De
10/05/2000 21:09:13
 
 
À
10/05/2000 16:39:02
Tom Gahagan
Alliance Computer Solutions
Thomaston, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00368307
Message ID:
00368382
Vues:
18
>Hi all.....
>
>Sorry for such a "simple" question!
>
>I'm allowing a user to right click on a field to pop up a drop down list to make a selection from.
>
>The list comes up blank. (when you click on the down arrow the proper data is there...ie I think rowsource and type are properly set) How do I get an initial value in the list?
>

(1) Set the BoundTo property to .T.
(2) Set the RowSource and RowSourceType for the List
(3) Set the BoundColumn to the correct column of the RowSource
(4) Set the ColumnCount and ColumnWidth to show on the form properly
(5) Set the ControlSource to something to hold the result and start value
(6) Set other properties such as IncrementalSearch and Sorted as desired

The ListBox will start up at the List item whose BoundColumn matches the start value of the ControlSource. The ControlSource does not have to be a field; you can use a variable or property for the ControlSource as long as you are certain that it is in scope whenever the ListBox is active - a member property of the parent (or even of the Control) is generally preferable to a Private or Public memvar.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform