Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp deletes a record when i DID NOT ask!!!
Message
From
24/08/2006 18:16:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Vfp deletes a record when i DID NOT ask!!!
Miscellaneous
Thread ID:
01148403
Message ID:
01148403
Views:
60
Hello


I made a class that has a function that wehn find a recrod deletes it ...when i was debugging my program...it showed me a problem in the seek function ...i solved it but
i realized that it deleted a reocrd from plplfmae.dbf when i already be in plplmov.dbf
WHAT HAPPENED??
Thank you
Luis Martin
select plplfmae
.
.
.
select plplfmov

IF SEEK(configtraba+ccodempleado+xmes+xano+cconcepto)	
		DELETE FOR cod_emple= plplfmae.cod_emple AND mes = xmes AND;
		 ano=xano AND mocodconce= cconcepto
		MESSAGEBOX("REGISTRO BORRADO ")
	ELSE
		MESSAGEBOX("NO SE ENCUENTRA EL CONCEPTO --> "+cconcepto)
	ENDIF
.
.
.
.
ENDIF
Next
Reply
Map
View

Click here to load this message in the networking platform