Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Column Displayed Combobox w/ Kludge
Message
De
30/10/2018 17:51:47
 
 
À
30/10/2018 06:40:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01662810
Message ID:
01662976
Vues:
37
>>>I created a Combobox that displays (when closed) multiple columns in the Display portion. The problem with it is that I had to introduce a kludge in the code to get it to display the multiple columns display when the user selects a item from the list.
>
>Hi Greg, I have something similar working on my programs, you can create a combined field to display both columns and the other to get the value from.
>For example you can have qtemp.exp_1+' | '+id, id in the rowsource of the combobox, columncount=2, columnwidths=50,100 so, when the user clicks on the combobox He will see the 2 columns only, then when selected, He will see the first column displaying the combined field. Attached is a picture.
>
>Hope this helps.
>John

Thanks for the reply. I tried this approach, but came up with a slightly better idea. Along with the multiple columns, I placed a textboxes over the top portion to represent the multiple columns in the display. Then when the user selects a item, the textboxes get populated with the selection of the corresponding columns. This gave the impression of the multiple columns in the display section. I plan to post it for others when I work out the last of any gotchas; the display section tends to display the first column contents while the drop-down is extended. It is a small annoyance, but the control otherwise works as desired.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform