Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving items in lists
Message
De
02/02/2007 09:54:50
 
 
À
02/02/2007 09:45:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01191770
Message ID:
01191777
Vues:
8
>Dear Experts
>
>command button has following codes
>
>thisform.LIST1.ROWSOURCETYPE= 2
>thisform.LIST1.ROWSOURCE ="TESTP"
>thisform.list1.displayvalue=1
>
>List1 double click has following coces
>
>IF THIS.ListIndex > 0
>	thisform.liST2.AddItem(This.List(This.ListIndex))
>	THIS.RemoveItem (THIS.ListIndex)
>ENDIF
>
>Problem
>When I double in list1 then select item goes to list2 but not remove itself from list1. I mean
>
>THIS.RemoveItem (THIS.ListIndex)
>
>does not work
>
>How to remove current list item from list1?
>
>Please help
THIS.Parent.lst2.AddItem( This.List( This.ListIndex))
This.RemoveItem( This.ListIndex)
works fine for me!

However, you must use .AddList or .AddLIstItem to compile the lists, with List.RowSource = 0.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform