Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding long string to listbox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01080638
Message ID:
01081808
Views:
8
Hi Sergey, thanks for your reply. I guess I will try use an array as the rowSource to get around the limitation.

>It's a limitation of the Listbox/Combobox. You can either use RowSourcetype=5-Array or store additional info in an array property and use ItemData property to reference it.
>
>>I am adding new items to a listbox with rowsourcetype=0 like below:
>
>>   this.AddItem(cString1)
>>   this.List(this.NewIndex,2) = cString2
>
>>where cString2 is a long string. Unfortunately cString2 is truncated to 255 chars after adding to the list.
>>
>>Is there a way to add cString2 with more than 255 chars with rowsourcetype=0?
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform