There may be an easier way to do this, but I'm pretty new to Crystal reports. I'm trying to format a string of numbers with the following (input is 1234567890, output is (123) 456-7890):
Join (MakeArray ("(",ToText (Left ({FaxCover_View.Fax},3))," ", ToText (Mid ({FaxCover_View.Fax},4,3)),"-", ToText (Right ({FaxCover_View.Fax},4))))
From what I wave seen in other reports we have, this shouild work, but I keep getting an error saying that the formula should result in a number. What am I doing wrong?
Join (MakeArray ("(",ToText (Left ({FaxCover_View.Fax},3))," ", ToText (Mid ({FaxCover_View.Fax},4,3)),"-", ToText (Right ({FaxCover_View.Fax},4))))
From what I wave seen in other reports we have, this shouild work, but I keep getting an error saying that the formula should result in a number. What am I doing wrong?