× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 2/10/2011 9:34 AM, Alan Shore wrote:

I have a 13 character field that can contain a number of any length with
leading and/or trailing blanks
I am pretty sure that I have used %dec to validate that the field contains
numeric data and will give an error if a blank is somewhere other than
trailing or leading

Often enough, the goal isn't only to validate that a number exists, but
to use that number for something. I've been using Barbara Morris'
GETNUM for many years because it converts character fields containing
decimal points, commas, dollar signs and negative signs.

I have long since lost the original article where it was published but
fortunately it's in the wiki:
http://wiki.midrange.com/index.php/Character_to_number
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.