[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'LazStringUtils' (#lazutils)

IsNumeric

Indicates whether the characters in the specified value are numeric digits in the range '0'..'9'.

Declaration

Source position: lazstringutils.pas line 45

function IsNumeric(

  s: string

):Boolean;

Arguments

s

  

String with the characters examined in the routine.

Function result

Returns True if all of the characters in s are in the range '0'..'9'.

Description

Examines each character in s (in reverse order).

Returns True if all of the characters in s are in the range '0'..'9'. Returns False if any character is not in the required range, or when s is an empty string ('').

Version info

Added in LazUtils version 4.0. Replaces the deprecated IsNumber() routine.


Version 4.0 Generated 2025-05-03 Home