Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy To - CSV
Message
 
 
À
07/06/2001 08:15:53
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00516035
Message ID:
00517850
Vues:
23
>Greg,
>
>You'll be interested in trying out
>*!* SELECT MyTable
>*!* GO TOP
>*!* BROWSE
>_VFP.DataToClip(,,3)
>
>STRTOFILE(_CLIPTEXT, [MyFile.TXT])
Cindy,

I tried it out. Thanks for showing another way to do tab-delimited...

DataToClip Method
Applies To See Also

Copies a set of records as text to the Clipboard.

Syntax

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

Settings

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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform