Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving values from Super Mover listbox
Message
From
28/12/2001 18:26:11
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00599021
Message ID:
00599030
Views:
17
Sergey

Meant to give you three stars. Mistakenly marked the thread as help and not solution to the problem and now it won't let me change it.

Sorry

Gaylen


>Hi Gaylen,
>
>There's aselections array property of the supermover where all selections also stored. Try following
Dime arselected[lnFieldsSel] &&& fields selected
>For i = 1 to ALEN(thisform._supermover1.aselections)
>	Store thisform._supermover1.aselections(i) to arselected(i)
>Endfor
>
>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform