Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo NumberOfElements
Message
From
06/02/2002 19:43:28
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00616066
Message ID:
00616356
Views:
22
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform