Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving values from Super Mover listbox
Message
De
28/12/2001 17:30:42
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Retrieving values from Super Mover listbox
Divers
Thread ID:
00599021
Message ID:
00599021
Vues:
52
I am using the supermover list in foundation class library and am having a problem retrieving the values from the selected listbox(right listbox). I am trying to move the selected item into an array for later use in the program as follows:

*** create array from supermover
Dime arselected[lnFieldsSel] &&& fields selected
For i = 1 to thisform._supermover1.lstright.listcount
Store thisform._supermover1.lstright.list(i) to arselected(i)
Endfor


For example if the selection in the left moverbox are A,B,C,D and I select them in no paricular order the array populates the same way as the values are selected and displayed in the right listbox of the supermover.

If however the user moves the values back and forth between the two listboxes with the final selection being A,C,D,B the array does not populate in the same order as the selected listbox(right listbox).

I tried to substitute the itemidtoindex(i) method and the indextoitemid for list(i) in the code above and I get the correct sequence of the items, but the array "arselected" contains the index number and not the value(A,B,C,or D).

Any idea or suggestions on how I can get the correct values into the array "arselected" will be appreciated.

Thanks
Gaylen
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform