Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strippint Quotes From ASCII Output
Message
From
21/04/1998 14:34:00
 
 
To
21/04/1998 13:43:24
Robert Byrd
National Association of Homebuilders
Washington, District of Columbia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00093667
Message ID:
00093769
Views:
41
Robert,

Here are some veriations that are close.

COPY TO ExpFile.Txt DELIMITED WITH ~
This yields an export file delimited with ~ and flds separated by commas.

COPY TO ExpFile.Txt DELIMITED WITH ~ WITH CHARACTER ~
This yields an export file delimited with ~ and flds separated by ~.

A work around might be something like

SELECT;
[~] + STR(NmbrFld1) + [~~] + ChrFld1 + [~~] + STR(NmbrFld2) + [~~] + ChrFld2;
FROM SrcFile;
INTO CURSOR crsExp

SELECT crsExp
COPY TO ExpFile.Txt TYPE SDF

-myron kirby-
=======================================
>I think I have not made myself understood.
>
>I am performing a COPY TO to an ASCII file. I prefer to delimit the ASCII file with a tilde (~). I need to have a tilde between ALL fields with NO OTHER DELIMITER in the file so I can BCP the data into SQL Server 6.5.
>
>If I do [COPY TO xx.txt DELI] then I get quotes and commas. If I do [COPY TO xx.txt DELI WITH "~"] then I get commas around the numeric data and ~ around the character data. If I do [COPY TO xx.txt DELI WITH "~"] then I get tildes around the numeric data and quotes around the character data.
>
----------------------------------
-myron kirby (mkirby2000@gmail.com)-
Previous
Reply
Map
View

Click here to load this message in the networking platform