Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Phone field
Message
From
25/06/2002 12:26:25
Jorge Haro
Independent Consultant
Juarez, Mexico
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00672067
Message ID:
00672071
Views:
7
You could do a locate for '617' $ PhoneNo, I'm not sure how good that would be preformance wise since the $ operator is not Rushmore optimizable, it would be much better if you broke apart the number or even better (simpler?) had an index on each of the parts, like substr(PhoneNo,3,3) for the area code, and so on.

>Hi all,
>
>I am trying to a search on parts of a phone number field
>The US phone numbers are formatted as follows 1-617-454-5842
>I have an index on the entire field and therefore can only look
>up the entire field.
>I want to be able to pull up all the 617 or even look up maybe the 5842
>endings or ideally any/all parts of the number.
>How do I go about doing this.
>
>Thanks in advance
>Carmel
Previous
Reply
Map
View

Click here to load this message in the networking platform