Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy To - CSV
Message
From
11/06/2001 12:02:35
 
 
To
07/06/2001 08:15:53
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00516035
Message ID:
00517850
Views:
22
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform