How to Make Combo or List Boxes Hold More than 255 CharactersID: Q139049 3.00 WINDOWS
The information in this article applies to:
SUMMARYWhen you use a list or combo box that has Value as the RowSourceType, only 255 characters can be typed into the RowSource property. You should use the Value option in the RowSourceType property when you need to place static values in the list or combo box. When you choose the Value option, the values can be typed into the RowSource property separated by commas. Once 255 characters have been typed into the RowSource property, no more characters are allowed, so the computer's bell sounds when you try to add another character. If the list or combo box needs to hold more than 255 characters, create an array to hold the values as demonstrated by the example in this article.
MORE INFORMATION
Step-by-Step Example1. Create a form in Visual FoxPro. 2. On the Form menu, click New Property. In the Name box, type:
3. In the Load event, type:
4. Select a list or combo box from the Controls toolbar, and place it on
5. Choose the RowSourceType property of the list or combobox in the
6. In the RowSource property, type:
7. In the NumberOfElements property, type:
8. Run the form, and note that the list or combo box contains the elements
This is a small example demonstrating the kind of elements an array might
hold. The only limitation is that the array can hold a maximum of 65000
elements.
Additional reference words: 3.00 VFoxWin KBSubcategory: FxtoolFormdes
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |