>I am converting phone numbers with variou formats (111) 1111111 and 111-111-1111. What is the best way to remove the ( and - characters?
>
>Thanks,
>Doug
CHRTRAN is best because you can remove both at the same time. You can use the following to remove every non-numeric character:
lcPhone = chrtran(lcPhone, chrtran(lcPhone, '1234567890', ''), '')
Mark McCasland
Midlothian, TX USA