General information
Category:
Forms & Form designer
Title:
Listbox This.Value loses value in Class
This is driving me nuts.
I have a ListBox on a form. Its RowSource is an array of character values. Its BoundTo is .T.
When I run the form it works fine. I then save a bunch of controls on the form, including the ListBox, as a class. I then replace the controls with the class.
Now when I run the form, the ListBox display the correct values but the Value property of the ListBox is equal to a numeric 0 when I scroll or select any of the items in the list.
If I remove the listbox from the class and then manually place the same listbox (cut and paste) in the class container as part of the form it works fine.
Any ideas?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only