Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Move list
Message
 
À
29/07/1999 18:25:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00247991
Message ID:
00248095
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform