Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting items from lists
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Deleting items from lists
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040178
Message ID:
01040178
Views:
52
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
Next
Reply
Map
View

Click here to load this message in the networking platform