Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding a FIELD to a DROPDOWN LIST
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01440264
Message ID:
01440266
Vues:
42
You can set it in the Property Sheet, I don't see why not.

>I have normally set up a dropdown list box by making an array from a picklist table. I like this way of doing it. Here's what I have set in the Properties of the DropDown List box: (This one works just fine)
>
>The name of the control is cboMill.
>
>BoundColumn = 2
>BoundTo = .T.
>RowSource = ThisForm.aMills
>RowSourceType = 5 (Array)
>Style = 2 (DropDown List)
>
>In the Control's INIT:
>cboMill = "This.ListIndex = 1"
>
>In the FORM's INIT:
>ThisForm.cboMill.ControlSource="Certs.Mill_ID" (This is what I think I forgot to add.)
>
>I sometimes wonder why we cannot set the SourceControl on the DropDownList object? Why is it that we have to set this manually in the FORM"s INIT, rather than in the control itself? Or, am I mistaken?
>
>The following is the code which creates the array from the MILLS table.
>
>
>SELECT ID + "|" + ALLTRIM(Name), ID ;
>	FROM Mills ;
>	ORDER BY ID ;
>	INTO ARRAY .aMills
>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform