xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

IsLower()

Checks if the first character of a string is a lowercase letter.

Syntax

IsLower( <cString> ) --> lIsLowerCase

Arguments

<cString>
A character string to check for its first character.

Return

The function returns .T. (true) when the leftmost character of a string is a lowercase letter, otherwise .F. (false).

Description

The function is used to check if a string begins with a lowercase letter from "a" to "z". It returns .T. (true) when a string begins with a lowercase letter, and .F. (false) when it begins with any other character.

Info

See also:IsAlNum(), IsAlpha(), IsAscii(), IsCntrl(), IsDigit(), IsGraph(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), IsXDigit(), Lower(), Upper()
Category: Character functions
Source:rtl\is.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example demonstrates various results of IsLower()

   PROCEDURE Main

      ? IsLower( "ABC" )               // result: .F.
      ? IsLower( "xyz" )               // result: .T.

      ? IsLower( " xHarbour" )         // result: .F.
      ? IsLower( ".net" )              // result: .F.

   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe