Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting comma delimited file problem

Status
Not open for further replies.

gj0519

MIS
May 8, 2003
69
US
I have a formula that creates a comma delimited file.
When I export the data into a text format my formating is changing.
This is my formula:

ToText({Command.MEMBER_NBR},0,"") & "," &
ToText({Command.SHARE_NBR},0,"") & "," &
"Y"

This is what I am getting after I export the data.
12345,8,Y
12345,8,y
12345,8,y
My problem is all the data should line up to the left, not with a space before the first character after the first line.
Any suggetions on how to fix this?

Thanks,

-Glenn
 
Try: -

ToText({Command.MEMBER_NBR},"00000",5) & "," &
ToText({Command.SHARE_NBR},"0",1) & "," &
"Y"

where "000000",6 and "0",1 needs to be adjusted for the length of each field you want to output.

This should hopefully keep the columns together, otherwise you may have to change the way you are exporting.

T
 
Thanks for the suggestion reidw. I downloaded a hot fix from Crystal and that fixed my problem.

Glenn
 
Glenn,

What version are you and which hotfix did you download?

Thanks
Mary
CR 8.5

Thanks,
Mary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top