Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print to text file
Message
From
12/06/2009 02:11:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Print to text file
Miscellaneous
Thread ID:
01405425
Message ID:
01405425
Views:
100
I have a table:

cust_id character 10
name character 30

I want to print to text file:

cust_id only print first 6 characters
name only print first 25 characters

I tried either:
SELECT LEFT(cust_id,6),LEFT(name,25) FROM cust TO FILE CUSTDATA
or
USE cust 
LIST FIELDS LEFT(cust_id,6)+LEFT(name,25) TO FILE CUSTDATA OFF NOCONSOLE 
always has two spaces in front of the text:
  XXXXXXYYYYYYYYYYYYYYYYYY
  XXXXXXYYYYYYYYYYYYYYYYYY
while it should be no space ahead:
XXXXXXYYYYYYYYYYYYYYYYYY
XXXXXXYYYYYYYYYYYYYYYYYY
Please advise.

Thanks for the help.
Next
Reply
Map
View

Click here to load this message in the networking platform