function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EAF1EAF1 

Re-format Fax Number

I am looking for a way to reformat - by means of a custom formula or something else - a fax number in Sforce that looks like this:

 

(248) 258 0000

 

into a text string like this:

 

12482580000

 

Any suggestions?

 

Eric Fris

ericfris@corporategrowthservices.com

IraIra

VB6 Code

[code]

 

For f = 1 to Len(Fax_number)

    If IsNumeric(mid$(Fax_number,f,1) then

        Temp$ = Temp$ & mid$(Fax_number,f,1)

    End If

Next

 

[/code]

 

Or

 

[code]

 

Temp$ = Fax_number

 

Temp$ = Replace(Temp$, "(" ,"")

Temp$ = Replace(Temp$, ")" ,"')

Temp$ = Replace(Temp$, "-" ,"")

Temp$ = Replace(Temp$, ".", "")

 

[/code]