Reformats a phone number in the same way as the Siebel 7 Web client does.
Siebel7Web.bdh
SiebelPhone( inout sPhone : string) : string;
Reformatted phone number.
Parameter | Description |
---|---|
sPhone | Undecorated phone number consisting only of digits |
sPhone must be an undecorated phone number, the return value is a reformatted phone number as follows:
"(" is inserted at the start.
") " is inserted after the 3rd digit.
"-" is inserted after the 6th digit.
" x" is inserte after the 10th digit if the original phone number is longer than 10 digits.
transaction TPhone begin Writeln(SiebelPhone("1234567890")); Writeln(SiebelPhone("12345678901")); Writeln(SiebelPhone("12345678901234567890")); end TPhone;
(123) 456-7890 (123) 456-7890 x1 (123) 456-7890 x1234567890See also