| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Retrieves the position of the first character out of a range found in a string.
PosRange( <cRangeStart> , ;
<cRangeEnd> , ;
<cString> , ;
[<lNotInRange>], ;
[<nSkipChars>] ) --> nPos
Depending on <lNotInRange>, the function returns the position of the first character in <cString>, that is (not) within the defined range, as a numeric value.
Note: the function is designed for easily finding non-printable characters in a character string. In this case Chr(0) and Chr(31) mark the start and end of the range of characters to search for.
| See also: | PosAlpha(), PosLower(), PosUpper(), RangeRem(), RangeRepl() |
| Category: | CT:String manipulation , Character functions |
| Source: | ct\pos1.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
http://www.xHarbour.com