addItem doesn't support more than 16 char long?

Bioman

Registered User.
Local time
Today, 13:51
Joined
Feb 28, 2002
Messages
29
Hi!

I put items in a listbox with addItem method. But if my string is more than 16 characters long, this cause an error. Is there another property for the length of accepted string? When my listbox is generated with a query, it accept very long string!

Thanks
 
wow! it's weird...

When I use this method:
listBox.addItem "This string may be very long"

I have no problem, but if I use this method:
listBox.addItem oRs("description")

this cause an error if oRs("description") value is more than 16 characters!!!

why?
 
forget my last message but look at this

ListBoxNoDem.AddItem oRs("des")
'This line work fine with any oRs("des")

Do While Not oRs.EOF
ListBoxNoDem.AddItem oRs("des")
'The same line in a do while cause an error if oRs("des") has
' more thans 16 characters!!
oRs.MoveNext
Loop
 

Users who are viewing this thread

Back
Top Bottom