我在水晶報告中工作,需要格式化電話號碼字段。我處理的數據在一定程度上搞砸了,並有一些數字格式正確無誤Crystal Reports電話號碼
(111)111-1111
和一些1111111111
我想寫這個公式,將刪除括號並重新格式化字符串。這裏就是我有這麼遠,不知道爲什麼這是不行的
StringVar phone = Replace({AssessorTrainingReport;1.Phone1},"(","");
phone := Replace({AssessorTrainingReport;1.Phone1},")","");
Picture (CStr (phone), "(xxx) xxx-xxxx");
預期產量是多少?你想將第一個字符串格式化爲第二個或其他方式? – 2012-08-06 19:48:27