Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy a record to a variable
Message
 
To
11/05/2015 09:40:07
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01619607
Message ID:
01619609
Views:
47
>>I am creating a file name and then trying to create that file with data from a single record in a table a table - what am I doing wrong?
>>
>>SELECT collections
>>
>>refa="c:\driver\"+ALLTRIM(str(collections.refno))+ALLTRIM(collections.driver)+".csv"
>>
>>Copy To refa DELIMITED WITH "" WITH CHARACTER "|";
>> FIELDS acclient,acad1,acad2,acad3,acad4,accontact,actel,coldate,readyat,closedat,notes,commodity,pieces,weight,globcutoff
>
>And what goes wrong? Btw, instead of ALLTRIM(str()), you can simply use Transform().
>
>Update: Try Copy To (refa) DELIMITED WITH "" WITH CHARACTER "|".....

Thanks - have solved it - there was a space in the driver field which was causing a problem

But thanks as always
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform