Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo NumberOfElements
Message
De
06/02/2002 19:43:28
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00616066
Message ID:
00616356
Vues:
23
>Update: Crap! We are limited to a ColumnCount of 1. So this only works if the value I want to store in the ControlSource is the lookup description instead of the PK. I guess I could just list the PK of the lookup values in the combo and let the users guess which PK to select. THIS IS WORTHLESS!!!!!!!!!!!!!!!!! < SET RANT OFF >


OK, you have found the display count, but I don't understand why would you be limited to one column? My favorite trick is to manipulate the ColumnWidths so that the unwanted columns are invisible. Say I have a description in column 1 and a key in 2. In combo.init:
this.columnwidths=tran(this.width)+",0"
this.boundcolumn=2
this.boundto=.t.
IOW, are you limited to a ColumCount of 1, or to display just one column? This is the way to achieve the latter.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform