A problem with ZAP command 
Author Message
 A problem with ZAP command

Zap requires user confirmation and is intended for use in the command
window.

make sure that the desired table is loaded with a use or select
statement, then

delete all
pack

will do what you want

Steve Grossman



Quote:
>In my programme I use a ZAP command to clear all the record of a
>table. However, the programme will stop after running this "ZAP"
>statement?? Is there any person has met the same problem. Is there any
>solution to solve it?



Sun, 23 Aug 1998 03:00:00 GMT
 A problem with ZAP command

Quote:
>In my programme I use a ZAP command to clear all the record of a
>table. However, the programme will stop after running this "ZAP"
>statement?? Is there any person has met the same problem. Is there any
>solution to solve it?

issue a SET SAFE OFF in your prg.  This will stop FoxPro from asking for
your confirmation on ALL commands that require a confirmation, including
ZAP.


Sun, 23 Aug 1998 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. A problem with ZAP command

2. Using ZAP command

3. Bulk Delete - Zap Data?

4. records zapped to null

5. zapping deleted record

6. dBase ZAP?

7. How to zap a .dbf table

8. 16-bit BDE install zaps WIN.INI run=

9. How to Zap dbf files

10. Packing and Zapping DBase files

11. Zap & Pack for Legacy dbase

12. Oracle 8.0.5 - Datafile has been zapped


 
Powered by phpBB® Forum Software