Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Rene Relucio
  Where is Rene Relucio?
 Quezon City
 Philippines
 Rene Relucio
 To: Ben Santiago
  Where is Ben Santiago?
 Holbrook
 New York - United States
 Ben Santiago
 Tags
Subject: RE: COPY TO Command, Causing Error....
Thread ID: 33868 Message ID: 33928 # Views: 2 # Ratings: 0
Version: Visual FoxPro 7 Category: Errors & Debugging
Date: Friday, December 05, 2003 5:24:10 AM         
   


> Can anyone see anything wrong with this code? VFP complains that the DELIMITED part of this code is wrong.
>
>
> IF THISFORM.chkTabDelimited.Value = 1 THEN
> 	COPY TO (lcOut) TYPE DELIMITED WITH TAB
> ELSE
> 	COPY TO (lcOut) TYPE SDF
> ENDIF
> 

>
>
> -Ben
> Programmer
> Eastern Suffolk BOCES
> BSantiag@esboces.org

COPY TO FileName [ [TYPE] [ FOXPLUS | FOX2X | DIF | MOD | SDF | SYLK | WK1 | WKS | WR1
| WRK | CSV | XLS | XL5 | DELIMITED [ WITH Delimiter | WITH BLANK
| WITH TAB | WITH CHARACTER Delimiter ] ] ] [AS nCodePage]

"COPY TO (lcOut) TYPE DELIMITED WITH TAB"

Where is your TYPE

DELIMITED
Creates a delimited file. "A delimited file is an ""ASCII text file"" in which each record ends with a carriage return and line feed." The default field separator is a comma. Because character data can include commas, character fields are additionally delimited with double quotation marks.
Unless you specify otherwise, a .txt extension is assigned to all newly created DELIMITED files.

Should your Type be an SDF to be delimited by TAB?


ENTIRE THREAD

COPY TO Command, Cauing Error.... Posted by Ben Santiago @ 12/4/2003 4:20:48 PM
RE: COPY TO Command, Cauing Error.... Posted by Jez Enefer-Mills @ 12/4/2003 4:55:12 PM
RE: COPY TO Command, Cauing Error.... Posted by Ben Santiago @ 12/4/2003 4:58:46 PM
RE: COPY TO Command, Cauing Error.... Posted by Jez Enefer-Mills @ 12/4/2003 5:00:32 PM
RE: COPY TO Command, Cauing Error.... Posted by Ben Santiago @ 12/4/2003 5:01:57 PM
RE: COPY TO Command, Cauing Error.... Posted by Jez Enefer-Mills @ 12/4/2003 5:04:38 PM
RE: COPY TO Command, Cauing Error.... Posted by Ben Santiago @ 12/4/2003 5:08:00 PM
RE: COPY TO Command, Cauing Error.... Posted by Jez Enefer-Mills @ 12/4/2003 5:10:20 PM
RE: COPY TO Command, Cauing Error.... Posted by Ben Santiago @ 12/4/2003 5:25:41 PM
RE: COPY TO Command, Cauing Error.... Posted by Jez Enefer-Mills @ 12/4/2003 5:29:47 PM
RE: COPY TO Command, Cauing Error.... Posted by Eric den Doop @ 12/4/2003 8:08:49 PM
RE: COPY TO Command, Cauing Error.... Posted by Cheryl Bellucci @ 12/4/2003 9:19:53 PM
RE: COPY TO Command, Causing Error.... Posted by Rene Relucio @ 12/5/2003 5:24:10 AM