Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting items from lists
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Deleting items from lists
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:
01040178
Vues:
49
Can anybody tell why when I click my remove button on my form that I get the messagebox stating I havent select anything in the list to delete when I have prior to the item actually being removed succesfully.
with thisform.pageframe1.page6.list2
for ix=1 to .Listcount
 if .Selected[ix]
 	IF MESSAGEBOX("Are you sure you want to delete this item?",4)=6
 	 	SELECT cmscomp
 	 	DELETE
 	ENDIF
 	thisform.pageframe1.page6.list2.Requery()
 ELSE
 	MESSAGEBOX("You have not selected a composition type to remove",0)    
 endif
ENDFOR
ENDWITH
Neil Lewis
IT R&D Manager
Velmore Ltd
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform