Documente Academic
Documente Profesional
Documente Cultură
command
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
.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
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.