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

Harbour All Functions – I

I2Bin

IndexExt
IndexKey
IndexOrd

Infinity

Inkey

Int

IsAffirm

IsAlpha

IsBin
IsDec

IsDigit

IsDisk

IsHexa

IsLeap

IsLeapYear

IsLower

IsNegative

IsOctal

IsUpper

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


Upper()

Upper()

Converts a character expression to uppercase format

Syntax

      Upper( <cString> ) --> cUpperString

Arguments

<cString> Any character expression.

Returns

<cUpperString> Uppercased value of <cString>

Description

This function converts all alpha characters in <cString> to upper case values and returns that formatted character expression.

Examples

      ? Upper( "harbour" )       // HARBOUR
      ? Upper( "Harbour" )       // HARBOUR

Compliance

Clipper

Platforms

All

Files

Library is core

Seealso

Lower(), IsUpper(), IsLower()

Lower()

LOWER()

Universally lowercases a character string expression.

Syntax

      LOWER( <cString> ) --> cLowerString

Arguments

<cString> Any character expression.

Returns

<cLowerString> Lowercased value of <cString>

Description

This function converts any character expression passes as <cString> to its lowercased representation. Any non alphabetic character withing <cString> will remain unchanged.

Examples

      ? LOWER( "HARBOUR" )      // harbour
      ? LOWER( "Hello All" )    // hello all

Compliance

Clipper

Platforms

All

Files

Library is rtl

Seealso

UPPER(), ISLOWER(), ISUPPER()

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()

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()