Exporting Records That Match Conditions
If the records you want to export are not sequential within the table, you can build a logical expression that specifies the selection criteria a record must meet to be exported. For example, you can choose to export all records with a particular value in a field.
To enter criteria for exporting records
From the File menu, choose Export.
Enter the source table and destination file information.
Choose Options.
Choose For to build an expression in the Expression Builder dialog box.
Note You do not need to include the FOR command in the expression. For example, type customer.country = "Canada" to export only Canadian data.
Choose OK.
Visual FoxPro evaluates all of the records and exports those that match the condition in the expression.
See Also
Exporting a Quantity or Range of Records | Controlling the Record Export Process | Importing and Exporting Data | Exporting Text Files | Exporting Numeric or Currency Values | Process of Exporting Data