I compare lengths to see if there were any digits len(chrtran(alltrim(field),"0123456789","")) <> len(alltrim(field))
-----Original Message----- From: MB Software Solutions, LLC Sent: Wednesday, September 02, 2009 2:04 PM We've got some phone fields in a table, and I'm grabbing them for reporting purposes. Some users seem to have keyed in crap though, like no digits but a dash or parens here and there. I want to NOT grab these fields, so how best can I basically code (in VFP9SP2) something like this: * pseduocode if DigitsInPhoneField then grab the field else ignore it endif tia! -- Mike Babcock, MCP MB Software Solutions, LLC President, Chief Software Architect http://mbsoftwaresolutions.com http://fabmate.com http://twitter.com/mbabcock16 _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/000801ca2bfb$31b7df80$95279e...@com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

