Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming output files
Message
From
11/07/2004 18:16:48
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00923150
Message ID:
00923165
Views:
33
Hi James,
Once you have the OutFile variable set as Sergey specified, you will need something like this:

SELECT * FROM InFile WHERE (Chapter%2) = 1 INTO CURSOR Holder
COPY TO (m.OutFile) TYPE SDF &&(or CSV) etc.
USE IN Holder


>hi all-
>
>I need some help with this code..
>nbook, x and are numeric that keep chaging by various increments. What I want to to is create file names for outputing to a text file that change as the numbers change.
>
>example
>outfile = file-1-3.txt
>outfile = file-12-1.txt
>outfile = file-5-9.txt
>
> outfile = "file-"+(STR(nbook))+"-"+(STR(x))
> SELECT * FROM infile WHERE (chapter%2) =1 INTO FILE outfile.txt
>
>thanks
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform