Selerix Developer Tools
FormatPhone(String,String) Method






Selerix.Foundation Assembly > Selerix.Foundation.Data Namespace > Utils Class > FormatPhone Method : FormatPhone(String,String) Method
Phone Number without punctuation
Abbreviation for phone extension
Takes in a phone number as stored in the database and returns the string to be displayed to the user.
Syntax
'Declaration
 
Public Overloads Shared Function FormatPhone( _
   ByVal phone As String, _
   ByVal extension As String _
) As String
'Usage
 
Dim phone As String
Dim extension As String
Dim value As String
 
value = Utils.FormatPhone(phone, extension)
public static string FormatPhone( 
   string phone,
   string extension
)
public function FormatPhone( 
    phone: String;
    extension: String
): String; static; 
public static function FormatPhone( 
   phone : String,
   extension : String
) : String;
public: static string* FormatPhone( 
   string* phone,
   string* extension
) 
public:
static String^ FormatPhone( 
   String^ phone,
   String^ extension
) 

Parameters

phone
Phone Number without punctuation
extension
Abbreviation for phone extension

Return Value

Displayable form for the Phone Number
See Also

Reference

Utils Class
Utils Members
Overload List