Share via


DataToClip Method

Copies a set of records as text to the Clipboard.

ApplicationObject.DataToClip([nWorkArea | cTableAlias]
   [, nRecords] [, nClipFormat])

Property Values

  • nWorkArea
    Specifies the work area number of the table for which records are copied to the Clipboard. If you omit cTableAlias and nWorkArea, records are copied to the Clipboard for the table open in the current work area.

  • cTableAlias
    Specifies the alias of the table for which the records are copied to the Clipboard.

  • nRecords
    Specifies the number of records copied to the Clipboard. If nRecords is greater than the number of remaining records in the table, all the remaining records are copied to the Clipboard. If nRecords and nClipFormat are omitted, the current record and all remaining records are copied to the Clipboard.

  • nClipFormat
    Specifies how fields are delimited. The settings for nClipFormat are:

    nClipFormat Description
    1 (Default) Fields delimited with spaces
    3 Fields delimited with tabs

    If nClipFormat is omitted, fields are delimited with spaces.

Remarks

The field names appear as the first line of the text copied to the Clipboard, followed by a separate line for each record.

See Also

Eval Method | SetVar Method | _CLIPTEXT System Variable

Applies To: Application Object | _VFP System Variable