JCL Help:StrIsDigit@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Tests whether S contains only numerical characters.


Pascal

 function StrIsDigit(const S: string): Boolean;
function StrIsDigit(const S: AnsiString): Boolean;


Parameters

Parameters Description
const S: string The string to test


Return Value

If S contains only numerical characters the result is True, otherwise the result is False.


Description

StrConsistsOfNumberChars tests whether the supplied string consists only of numerical characters. That is, whether or not all individual characters come from the ['0'..'9'] set. The test does not include the decimal separator. To include it in the test use StrConsistsOfNumberChars instead.


See Also

StrIsAlpha StrIsAlphaNum StrConsistsOfNumberChars


About

Unit

JclAnsiStrings


Donator

Martin Kubecka


Notes

If S is an empty string the result is False.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page