Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>I have a table that has PK, LookupCode, Description as three fields. I want a combobox to always display LookupCode when selecting. No matter what I do, it always contains PK.
>
>I do the following when using a combo for foreign keys.
>
>Set the fk to the last column (3 in your case)
>Set that as the BoundColumn
>Set ColumnCount to 3
>Set ColumnWidths to something like 50,100,0 <-- note the fk has zero width
>Set Boundto = .T.
>
>You may also want to set ColumnLine = .F.
>
>To load the combo I use a SQL statment in the combo init that fills a custom array property in the combo.
>
>Was that what you were asking for?
Just a typo fix. I change "not" to "note" on the ColumnWidths Line.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement