Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming output files
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Naming output files
Miscellaneous
Thread ID:
00923150
Message ID:
00923150
Views:
75
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
Next
Reply
Map
View

Click here to load this message in the networking platform