Indy 9
IsNumeric
Unit: IdGlobal
Determines if a character is a numeric digit.
function IsNumeric(AChar: Char): Boolean; overload;
function IsNumeric(const AString: string): Boolean; overload;
Unit
IdGlobal
Parameters
AChar: Char
Character to be examined for numeric content.
const AString: string
String to be examined for numeric content.
Return Value
Boolean - True if the character or string contains numeric digit(s).
Description
IsNumeric is an overloaded Boolean function that indicates if the character in AChar, or the string in AString, contains numeric digit(s) in the range '0'..'9'.

When using the character variant of the function, IsNumeric checks AChar against a character set containing the characters '0'..'9'.

When using the string variant of the function, IsNumeric checks AString for valid numeric content using the Val procedure.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.