xHarbour Reference Documentation > Function Reference |
Returns the position of the first lower case letter in a character string.
PosLower( <cString> , ; [<lNoLower>] , ; [<nSkipChars>] ) --> nPos
Depending on <lNoLower>, the function returns the position of the first (non)lower case character in <cString> as a numeric value.
See also: | PosAlpha(), PosRange(), PosUpper() |
Category: | CT:String manipulation , Character functions |
Source: | ct\pos1.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays results of PosLower() PROCEDURE Main LOCAL cString := "xHarbour" LOCAL nPos, cChr ? nPos := PosLower( cString ) // result: 1 ? cChr := cString[ nPos ], ; // result: x 120 Asc( cChr ) ? nPos := PosLower( cString, .T. ) // result: 2 ? cChr := cString[ nPos ], ; // result: H 72 Asc( cChr ) ? nPos := PosLower( cString, .F., nPos ) // result: 3 ? cChr := cString[ nPos ], ; // result: a 97 Asc( cChr ) RETURN
http://www.xHarbour.com