Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving data between Multi-column List boxes
Message
 
À
11/08/1998 19:50:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00125686
Message ID:
00125828
Vues:
14
>I don't have a control data source. I used Addlistitem to populate the listbox.
>I see no way to add both columns to the other side because the addlistitem
>requires the index number before the column number.
>
>Thanks..

Is the receiving listbox .Sorted property set to .t.? If so, try something like this:

nNextListNo = this.listcount + 1
this.addlistitem("Column 1 Value", nNextListNo, 1)
this.addlistitem("Column 2 Value", nNextListNo, 2)
etc...

The item should be automatically sorted.

If the listbox is not sorted, you have to determine where you want the new item to appear in the list. It's a bit trickier. I don't know what would happen if you assigned the same Index number to two different items. They may display next to each other, but probably not.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform