[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
+---------------------------------+
| ERASE |
+---------------------------------+
ERASE <file> | ?
-----------------------------------
Erases file from disk.
-----------------------------------
WARNING -- Exercise caution when using this command -- any file erased
with this command cannot be retrieved. Even if SAFETY is SET ON you
will not be warned before the file is erased.
<file> | ?
Deletes specified file or displays Open File dialog. Wildcard
characters are not supported in the ERASE command. <file> must be a
fully-qualified pathname:
. the file name extension must be included, and
. if <file> is on a drive or in a different directory than the default
drive or directory, the drive designator and/or the directory name must
also be specified.
+---------------------------------+
| Program Example |
+---------------------------------+
In this example, database structure of ITEMS is copied to database file
named TEMP. Structure information is modified and new database BACKUP
is created from modified structure information. All records from ITEMS
are then appended to BACKUP database. Field ALLCOST is replaced with
product of QUANTITY and PRICE fields and temporary database TEMP is then
erased.
USE items
COPY STRUCTURE EXTENDED TO temp
USE temp
APPEND BLANK
REPLACE field_name WITH 'allcost'
REPLACE field_type WITH 'N'
REPLACE field_len WITH 10
REPLACE Field_dec WITH 2
CREATE backup FROM temp
USE backup
APPEND FROM items
REPLACE ALL allcost with quantity * price
ERASE temp.dbf
-----------------------------------
See Also: DELETE FILE, FILER
-----------------------------------
See Also:
DELETE FILE
FILER
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson