Does Delphi 5 contain an equivalent to the VB "IsNumeric" function, or can anyone help with how I test whether a certain character in a string is a numeric or an alpha?
There are a number of ways to test it. One of them is the val procedure
for further information check out faq218-360 in the pascal-forum about strings
Val( TextVal, Number , Code) converts a string to a number.
If this is possible the result of code = 0, other wise code indicates the character where
the error occured
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.