Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Retrieving values from Super Mover listbox
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement