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

MakeDir

MAKEDIR()

Create a new directory

Syntax

      MAKEDIR( <cDirectory> ) --> nError

Arguments

<cDirectory> The name of the directory you want to create.

Returns

<nError> 0 if directory was successfully created, otherwise the number of the last error.

Description

This function attempt to create a new directory with the name contained in <cDirectory>. If this function fails, it will return the last OS error code number. See FERROR() function for the description of the error

Note

     MakeDir() is equivalent to DirMake(), HB_DirCreate() and HB_DirBuild()

Examples

      cDir := "temp"
      IF MakeDir( cDir ) == 0
         ? "Directory", cDir, "successfully created"
      ENDIF

Tests

      See examples

Compliance

This function is CA-Cl*pper 5.3 compliant

Platforms

All

Files

Library is rtl

Seealso

DIRCHANGE(), DIRREMOVE(), ISDISK(), DISKCHANGE(), DISKNAME(), FERROR(), DirMake(), HB_DirCreate(), HB_DirBuild()

DirRemove()

DIRREMOVE()

Attempt to remove a directory

Syntax

      DIRREMOVE( <cDirectory> ) --> nError

Arguments

<cDirectory> The name of the directory you want to remove.

Returns

<nError> 0 if directory was successfully removed, otherwise the number of the last error.

Description

This function attempt to remove the specified directory in <cDirectory> If this function fails, it will return the last OS error code number. See FERROR() function for the description of the error.

Examples

      cDir := ".\backup"
      IF DirRemove( cDir ) == 0
         ? "Remove of directory", cDir, "was successfull"
      ENDIF

Tests

      See examples

Compliance

This function is CA-Cl*pper 5.3 compliant

Platforms

All

Files

Library is rtl

Seealso

MAKEDIR(), DIRCHANGE(), ISDISK(), DISKCHANGE(), DISKNAME(), FERROR()

DirChange()

DIRCHANGE()

Changes the directory

Syntax

      DIRCHANGE( <cDirectory> ) --> nError

Arguments

<cDirectory> The name of the directory you want do change into.

Returns

<nError> 0 if directory was successfully changed, otherwise the number of the last error.

Description

This function attempt to change the current directory to the one specified in <cDirectory>. If this function fails, it will return the last OS error code number. See FERROR() function for the description of the error.

Examples

      IF DirChange( "\temp" ) == 0
         ? "Change to diretory was successfull"
      ENDIF

Tests

      See examples

Compliance

This function is CA-Cl*pper 5.3 compliant

Platforms

All

Files

Library is rtl

Seealso

MAKEDIR(), DIRREMOVE(), ISDISK(), DISKCHANGE(), DISKNAME(), FERROR()