Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limit Width of Combo Box
Message
From
14/10/2002 13:00:44
 
 
To
14/10/2002 08:47:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00710875
Message ID:
00710989
Views:
11
>I have a combo box based on Select Statement. The width of the field is 100 characters. It seems like the column width is defaulting to this feild width even though I have used AllT() in my SQL statement and set the column width to 50. How can I force the combo box widht to be smaller?

If you want the selected field width to be 50, then use LEFT(myField,50) in your SQL-Select instead of alltrim. The size of the field in the first selected row will determine the width of all the rest.

If you want the drop down display of the combobox to fit roughly 50 chars then you'll need to set the width of the combobox. The width depends on the screen font. Check out the _screen.textwidth and sysmetric help topics.
Previous
Reply
Map
View

Click here to load this message in the networking platform