Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfisdigit()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfIsDigit()
Controls if a string contains only numbers
------------------------------------------------------------------------------
Syntax:

     dfIsDigit(<cStr>,<nLen>) --> lRet

Parameters:

     <cStr>     String to control
     >          Length on which do the control

Returns:

     <lRet> If .T. the string contains numbers only

Description:

     Permit of to control in a string that contains numbers only

Example:

     ? dfIsDigit(" 1233aa," 6)  // .F.
     ? dfIsDigit(" 1233aa," 5)  // .F.
     ? dfIsDigit(" 1233aa," 4)  // .T.
     ? dfIsDigit(" 1233aa," 3)  // .T.
     ? dfIsDigit(" 1233aa," 2)  // .T.
     ? dfIsDigit(" 233aa," 2)  // .F.
     ? dfIsDigit(" 1234567890," 10)  // .T.
     ? dfIsDigit("/ 234567890," 10)  // .F.
     ? dfIsDigit(" 123456789":, 10)  // .F.

See also:

     dfIsLower(), dfIsUpper()

See Also: dfIsLower() dfIsUpper()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson