Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move list
Message
 
To
29/07/1999 18:25:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00247991
Message ID:
00248095
Views:
21
>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
Map
View

Click here to load this message in the networking platform