I have crystal report in which I want to format the case no into sumthing like this 000-00000-00. I used totext method but it won't work. it says bad number format string. I tried these codes but nothing is working. If you're wondering why i Converted the case no into number first, it is because the Caseno is already in string format and it is giving me "too many argument" error if I do not do that.

```
NumberVar x:=CDBl({vwPriorityAssignmentList.CaseNo});
totext(x, '00000-000-00');

```

or this:

```
If NumericText({vwPriorityAssignmentList.CaseNo}) Then
   ToText(tonumber({vwPriorityAssignmentList.CaseNo}),"000-00000-00")
Else
   {vwPriorityAssignmentList.CaseNo};

```

can anyone help me pls. appreciate it, thanks