Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mover Class that allows you to move items up & down
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00731235
Message ID:
00731248
Views:
22
David,

Thank you for the explanation.

>Allan,
>
>You can use the IndexToItemID() method to see the new order of the items.
>
>
for i = 1 to this.ListCount
>   ? this.IndexToItemID( i )
>endfor
>
>So if you have 3 items (One, Two, Three) in the list and drag item 1 down one position the above loop would print:
>
>2
>1
>3
>
>You can get the items themselves in order by indirecting the above through ListItem():
>
>
for i = 1 to this.ListCount
>   ? this.ListItem( this.IndexToItemID( i ) )
>endfor
>
>would print:
>
>Two
>One
>Three
>
>>Don't mover classes use arrays as the sources for the selected and unselected items?
>>I see that the moverbars property is only applicable to RowSourceType property of 0 (None) or 1 (Value).
>>I think that there is a missing link that I am not seeing :(.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Reply
Map
View

Click here to load this message in the networking platform