Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mover Class that allows you to move items up & down
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00731235
Message ID:
00731246
Vues:
22
This message has been marked as the solution to the initial question of the thread.
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 :(.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform