General information
Category:
Forms & Form designer
>I have a movelist class with 2 listbox (lstSource and lstSelected)that allows the exchange of items between them.
>When somebody adds new information in the buffered view1, I use the movelist for assigning the respective items in view2 and they are in the lstSelected object that doesn't have controlsource, I scan the lstSelected.List to read items and insert them into buffered view2, but I have a trouble because I don't find the records that are buffered and get index error (because one item is inserted two times).
>Where can I scan the lstSelected.List and insert the items to buffered view2? (view1 is parent of view2)
It appears that when you are moving one item to the other, you've only filled the buffer. I think that if you requery the view to "see" the newly added value, that it's going to read from disk and not the buffer, I know SQL-SELECT goes to disk. If you don't have alot of items, you might try populating two arrays or even using .AddItem or .AddListItem to fill the boxes and write the code to manipulate them rather than views.
Steve
Previous
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