Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting items from lists
Message
De
11/08/2005 12:10:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01040178
Message ID:
01040281
Vues:
13
>>Thankyou Tamar
>>
>>Everytime I try to click remove I get the messagebox 'You have not selected a composition type to remove' even if I have selected or not.
>>
>>Thanks
>
>Why you're going backwards in your loop?
>It should be
>
 for lnI=1 to .ListCount
>         if .selected(m.lnI)
>             llAny = .t.
>             if YesNo("Delete?")
>                delete
>             endif
>      next
I made the loop go backwards because I'm concerned that as you delete items, the position of items in the list may change. I think it won't happen until you requery, but I didn't want to the chance (and didn't have a minute to test).

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform