Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comboboxes - displaying two values after user sel from l
Message
From
04/12/1998 13:44:54
 
 
To
04/12/1998 00:30:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00163451
Message ID:
00164181
Views:
20
You already have a Combo / Drop down list with multiple columns, what I think you want is the row value displayed in the list as your ControlSource value, right?
In converting from Foxpro for windows, where we used a Mono-spaced font with multiple items concatenated and chr(124) as a vertical bar separator, we converted to Arial,8 and then used PADR() with a twist... we converted the alltrim( value ) for each item in the list to pixel width ( reference FontMetric(), TxtWidth() functions ) and padded to that width between the pseudo vertical bar.

Caveteats -- chr(124) in Arial doesn't touch so there is a slight gap in the bars between rows -- chr(179) in the Mono-spaced world does touch and with the mono-spaced font looks reasonably well. Mono-spaced does not look like "Windows" or so our marketing people say. It is a "look and feel" decision.
Previous
Reply
Map
View

Click here to load this message in the networking platform