Harbour Check Functions

Check Functions

IsAffirm Checks if passed char is an affirmation char
IsAlpha Checks if leftmost character in a string is an alphabetic character
IsBin Check if the value is a Binary Number
IsDec Check if the value is a Decimal Number
IsDigit Checks if leftmost character is a digit character
IsDisk Verify if a drive is ready
IsHexa Check if the value is a Hexal Number
IsLeap Tests if a specific year is a leap year
IsLeapYear Checks if the given date is a leap year
IsLower Checks if leftmost character is an lowercased letter
IsNegative Checks if passed char is a negation char
IsOctal Check if the value is a Octal Number
IsUpper Checks if leftmost character is an uppercased letter.
HB_Is_CStructure Checks if the value is a CStructure
HB_IsArray Tests if the value returned by an expression is an array
HB_IsBlock Tests if the value returned by an expression is a Code block
HB_IsByRef Tests if a parameter is passed by reference
HB_IsChar Tests if the value returned by an expression is char type
HB_IsDate Tests if the value returned by an expression is a Date
HB_IsDateTime Tests if the value returned by an expression is a DateTime value
HB_IsEvalItem Undocumented
hb_IsFunction Determine wheter exists (linkable) a function
HB_IsHash Tests if the value returned by an expression is a Hash
HB_IsHashKey Tests if the value returned by an expression is a Hash Key
HB_IsLogical Tests if the value returned by an expression is a logical value
HB_IsMemo Tests if the value returned by an expression is a Memo value
HB_IsNil Tests if the value returned by an expression is NIL
HB_IsNull Tests if the value returned by an expression is empty
HB_IsNumeric Tests if the value returned by an expression is a numeric value
HB_IsObject Tests if the value returned by an expression is an object
HB_IsPointer Tests if the value returned by an expression is a pointer
hb_IsPrinter ( Probably ) same as IsPrinter()
hb_IsRegex Determine is this value a regular expression
hb_IsRegexString Checks if a character string is a compiled regular expression
hb_IsService Undocumented
HB_IsString Checks if the value is a string
HB_IsSymbol Checks if the value is a symbol
HB_IsTimeStamp Checks if the value is a TimeStamp

String Functions

AddASCII

AfterAtNum

AllTrim
Asc

ASCIISum

ASCPos
At

AtAdjust

AtNum
AtRepl
AtToken

BeforAtNum

Chr

CharAdd
CharAnd
CharEven
CharHist
CharList
CharMirr
CharMix
CharNoList
CharNot
CharOdd
CharOne
CharOnly
CharOr
CharPix
CharRela
CharRelRep
CharRem
CharRepl
CharRLL
CharRLR
CharSHL
CharSHR
CharSList
CharSort
CharSub
CharSwap
CharWin
CharXOR

CountLeft
CountRight
Descend
Empty
hb_At
hb_RAt
hb_ValToStr
IsAlpha
IsDigit
IsLower
IsUpper

JustLeft
JustRight

Left
Len
Lower
LTrim

NumAt
NumToken
PadLeft
PadRight

PadC
PadL
PadR

POSALPHA
POSCHAR
POSDEL
POSDIFF
POSEQUAL
POSINS
POSLOWER
POSRANGE
POSREPL
POSUPPER

RangeRem
RangeRepl

RAt

RemAll

RemLeft
RemRight
ReplAll

Replicate

ReplLeft

ReplRight

RestToken

Right
RTrim

SaveToken

SetAtLike
Space
Str

StrDiff

StrFormat

StrSwap

StrTran
StrZero
SubStr

TabExpand
TabPack

Token

TokenAt
TokenEnd
TokenExit
TokenInit
TokenLower
TokenNext
TokenNum
TokenSep
TokenUpper

Transform
Trim
Upper
Val

ValPos
WordOne
WordOnly
WordRem
WordRepl
WordSwap

WordToChar


IsUpper()

ISUPPER()

Checks if leftmost character is an uppercased letter.

Syntax

      ISUPPER( <cString> ) --> lUpper

Arguments

<cString> Any character string

Returns

lUpper Logical true (.T.) or false (.F.).

Description

This function checks to see if the leftmost character if <cString> is a uppercased letter. If so, the function will return a logical true (.T.); otherwise, it will return a logical false (.F.).

Examples

      ? ISUPPER( "Abcde" )    // .T.
      ? ISUPPER( "abcde" )    // .F.

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ISALPHA(), ISLOWER(), ISDIGIT(), LOWER(), UPPER()

IsLower()

ISLOWER()

Checks if leftmost character is an lowercased letter.

Syntax

      ISLOWER( <cString> ) --> lLower

Arguments

<cString> Any character string

Returns

lLower Logical true (.T.) or false (.F.).

Description

This function takes the character string <cString> and checks to see if the leftmost character is a lowercased letter. If so, the function will return a logical true (.T.); otherwise, it will return a logical false (.F.).

Examples

      ? islower( "ABCde" )      // .F.
      ? islower( "aBCde" )      // .T.

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ISALPHA(), ISDIGIT(), ISUPPER(), LOWER(), UPPER()

IsDigit()

ISDIGIT()

Checks if leftmost character is a digit character

Syntax

      ISDIGIT( <cString> ) --> lDigit

Arguments

<cString> Any character string

Returns

lDigit Logical true (.T.) or false (.F.).

Description

This function takes the character string <cString> and checks to see if the leftmost character is a digit, from 1 to 9. If so, the function will return a logical true (.T.); otherwise, it will return a logical false (.F.).

Examples

      ? ISDIGIT( "12345" )      // .T.
      ? ISDIGIT( "abcde" )      // .F.

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

ISALPHA(), ISLOWER(), ISUPPER(), LOWER(), UPPER()

C5_ISALPHA

 ISALPHA()
 Determine if the leftmost character in a string is alphabetic
------------------------------------------------------------------------------
 Syntax

     ISALPHA(<cString>) --> lBoolean

 Arguments

     <cString> is the character string to be examined.

 Returns

     ISALPHA() returns true (.T.) if the first character in <cString> is
     alphabetic; otherwise, it returns false (.F.).

 Description

     ISALPHA() is a character function that determines if the specified
     string begins with an alphabetic character.  An alphabetic character
     consists of any uppercase or lowercase letter from A to Z.  ISALPHA()
     returns false (.F.) if the string begins with a digit or any other
     character.

 Examples

     .  These examples demonstrate various results of ISALPHA():

        ? ISALPHA("AbcDe")               // Result: .T.
        ? ISALPHA("aBcDE")               // Result: .T.
        ? ISALPHA("1BCde")               // Result: .F.
        ? ISALPHA(".FRED")               // Result: .F.

 Files   Library is EXTEND.LIB.

See Also: ISDIGIT() ISLOWER() ISUPPER() LOWER() UPPER()