Sunteți pe pagina 1din 3

Pack To completely remove all deleted records, use the Pack Table

command

Deleting record means getting rid of


unwanted information in a table. Deleting a
record from table involves two steps: 1.
Marking a record for deletion Table Delete
record These records will remain in the table
and can be recalled by PACK command or
Table Recall Record 2 Actually deleting the
records
To physically remove the marked records the
choose Table Remove Deleted Records

editing dat to make change in existing table


Edite to make additions, deletions, or other changes in (a
computer file)

Display:
commands that define an output txt or table. The image is create

Sorting:
Sorting means sorting records in a particular order say ascending or descending
order
Sorting helps us in locating required records such as names of subscribers quickly.
Sorting physically rearranges the records in a table.
Every sorted file requires disk space equal to the original table being sorted ,as it
creates a duplicate copy of the original table

Indexing: Indexing is a process of arranging records in a particular order

.A separate index file specifies the logical order of the records in a table. Records
are displayed and accessed in the order specified by the controlling index
expression in the index file
If the file is indexed by name, than the program could find a name very quickly.
The index would list just the names in alphabetical order and would contain pointers
showing where each name was in actual table.
In Indexing,original record numbers do not change
The physical order of the records in the table is not changed by an index file.
The records in the table will always remain in their original order Index command
creates an Index file and display the message on the status bar

--------------------------------------

ZAP Command
Removes all records from a table, leaving just the table structure.
------------------------------------------
list

Continuously displays table or environment information.


LIST [FIELDS FieldList] [Scope] [FOR lExpression1]
[WHILE lExpression2] [OFF] [NOCONSOLE] [NOOPTIMIZE]
[TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]
-or-
LIST FILES [ON Drive] [LIKE FileSkeleton]
[TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]
-or-
LIST MEMORY [LIKE FileSkeleton] [NOCONSOLE]
[TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]
-or-
LIST STATUS [NOCONSOLE]
[TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]
-or-
LIST STRUCTURE [IN nWorkArea | cTableAlias] [NOCONSOLE]
[TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]

Remarks
These LIST commands are identical to the DISPLAY commands except for the following
differences:
ADDITIVE
Appends to the end of the named file. If you omit ADDITIVE, the file is overwritten
with the value of the expression.
The scope for LIST defaults to ALL records.
LIST doesn't prompt you after filling the main Microsoft Visual FoxPro window or a
user-defined window with information.

LIST doesn't display records flagged for deletion when SET DELETED is ON.

S-ar putea să vă placă și