Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert to txt
Message
From
11/09/2008 06:11:01
 
 
To
11/09/2008 06:00:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01346534
Message ID:
01346537
Views:
11
>hi all,
>
>i need to convert to txt delimited with # via vfp code,
>
>this code below convert to excel sheet
>
>
>SELECT txp_no as txp_no,year as year,id_no as id_no,id_type as id_type,inf_type as inf_type,cnt_code as cnt_code ,;
>dedcode as dedcode,AMT as AMT ,entry_id as entry_id,entrydate as entry_date,confflag as confirm_flag,confirmid as confirm_id,confdate as confirm_date FROM qcombined1 INTO TABLE MYcur
>
>gcDelimName = ALIAS( ) + '.xls'
>
>gcDelimFile = PUTFILE('excel_file:', gcDelimName, 'xls')
>
>IF EMPTY(gcDelimFile)  
>
> CANCEL
>
>ENDIF
>COPY TO (gcDelimFile) XLS
>
>
>thanks

Hi Mohammed,
did you try this command:
COPY TO (your_txt_file_name) TYPE DELIMITED WITH CHARACTER #
Previous
Reply
Map
View

Click here to load this message in the networking platform