Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_VFP.DataToClip(,,3) Question
Message
From
25/03/2006 02:54:57
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
 
To
25/03/2006 02:32:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01107602
Message ID:
01107605
Views:
18
>I use this command a lot for quick drops of table data into Excel spreadsheets and it works great, except for one thing. It always PADS CHARACTER field data with spaces to the full length of the field. I'd like to know of a way to emlinate these padded spaces before I drop the data into Excel.
>
>I tried CHRTRAN(_CLIPTEXT, ' ' , '') and it almost works. The only problem is this funtion also eliminate and spaces embedded in the text strings so obviously this is not the correct solution.
>
>Thanks,
>Robert

Try
STRTRAN(_CLIPTEXT, '  ' , '')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform