Function ValPos() Foundation

Retrieves the numeric value of a character at a specified position in a string.

Syntax
ValPos( <cString>    , ;
        [<nPosition>]  ;
      ) --> nDigit
Return

Returns the numeric value of the character (digit) found at the position <nPosition> in <cString>. If the character is not a digit or <nPosition> is larger than Len(<cString>) the function returns 0.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.