HB_IsBlock

HB_IsBlock()

Tests if the value returned by an expression is a Code block.

Syntax

      HB_IsBlock( <expression> ) --> lIsCodeblock

Arguments

<expression> an expression of any data type

Return

.T. (true) if the value returned by <expression> is a code block, otherwise .F. (false) is returned.

Description

HB_IsBlock() is used to test if a variable contains a code block or if the result of an expression is of data type Code block. The function can be used as a replacement for the expression: Valtype(<expression>)==”B”.

Seealso

HB_IsArray(), HB_IsByRef(), HB_IsDate(), HB_IsHash(), HB_IsLogical(), HB_IsMemo(), HB_IsNIL(), HB_IsNull(), HB_IsNumeric(), HB_IsObject(), HB_IsPointer(), HB_IsString(), Type(), Valtype()

HB_IsString

HB_IsString()

Tests if the value returned by an expression is a character string.

Syntax

      HB_IsString( <expression> ) --> lIsString

Arguments

<expression> an expression of any data type

Return

.T. (true) if the value returned by <expression> is a character string, otherwise .F. (false) is returned.

Description

HB_IsString() is used to test if a variable contains a character string or if the result of an expression is of data type Character. The function can be used as a replacement for the expression: Valtype(<expression>)==”C”.

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsLogical(), HB_IsHash(), HB_IsMemo(), HB_IsNIL(), HB_IsNull(), HB_IsNumeric(), HB_IsObject(), HB_IsString(), Type(), Valtype()

HB_IsPointer

HB_IsPointer()

Tests if the value returned by an expression is a pointer.

Syntax

      HB_IsPointer( <expression> ) --> lIsPointer

Arguments

<expression> an expression of any data type

Return

.T. (true) if the value returned by <expression> is a pointer, otherwise .F. (false) is returned

Description

HB_IsPointer() is used to test if a variable contains a pointer or if the result of an expression is of data type Pointer. The function can be used as a replacement for the expression: Valtype(<expression>)==”P”.

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsLogical(), HB_IsHash(), HB_IsMemo(), HB_IsNIL(), HB_IsNull(), HB_IsNumeric(), HB_IsObject(), HB_IsString(), Type(), Valtype()

HB_IsObject

HB_IsObject()

Tests if the value returned by an expression is an object.

Syntax

      HB_IsObject( <expression> ) --> lIsObject

Arguments

<expression> an expression of any data type

Return

.T. (true) if the value returned by <expression> is an object, otherwise .F. (false) is returned.

Description

Function HB_IsObject() is used to test if a variable contains an object or if the result of an expression is of data type Object. The function can be used as a replacement for the expression: Valtype(<expression>)==”O”.

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsLogical(), HB_IsHash(), HB_IsMemo(), HB_IsNIL(), HB_IsNull(), HB_IsNumeric(), HB_IsPointer(), HB_IsString(), Type(), Valtype()

HB_IsNull

HB_IsNull()

Tests if the value returned by an expression is empty.

Syntax

      HB_IsNull( <expression> ) --> lIsNull

Arguments

<expression> an expression of data type Array, Character or Hash. If a value of a different data type is passed, a runtime error is raised.

Return

.T. (true) if the value returned by <expression> is an empty array, character string or hash, otherwise .F. (false) is returned.

Description

Function HB_IsNull() is used to test if a variable contains an empty value of data type Array, Character or Hash. The function can be used as a replacement for the expression: Len(<expression>)==0.

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsHash(), HB_IsLogical(), HB_IsMemo(), HB_IsNIL(), HB_IsNumeric(), HB_IsObject(), HB_IsPointer(), HB_IsString(), Type(), Valtype()

HB_IsNIL

HB_IsNIL()

Tests if the value returned by an expression is NIL.

Syntax

      HB_IsNIL( <expression> ) --> lIsNIL

Arguments

<expression> This is an expression of any data type

Return

The function returns .T. (true) if the value returned by <expression> is NIL, otherwise .F. (false) is returned.

Description

HB_IsNIL() is used to test if a variable contains the value NIL or if the result of an expression is of undefined data type. The function can be used as a replacement for the expression: Valtype(<expression>)==”U”.

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsHash(), HB_IsLogical(), HB_IsMemo(), HB_IsNull(), HB_IsNumeric(), HB_IsObject(), HB_IsPointer(), HB_IsString(), Type(), Valtype()

HB_IsMemo

HB_IsMemo()

Tests if the value returned by an expression is a Memo value.

Syntax

      HB_IsMemo( <expression> ) --> lIsMemo

Arguments

<expression> an expression of any data type

Return

.T. (true) if the value returned by <expression> is of data type Memo, otherwise .F. (false) is returned.

Description

HB_IsMemo() is used to test if a variable contains a memo value or if the result of an expression is of data type Memo. The function can be used as a replacement for the expression: Valtype(<expression>)==”M”.

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsHash(), HB_IsLogical(), HB_IsNIL(), HB_IsNull(), HB_IsNumeric(), HB_IsObject(), HB_IsPointer(), HB_IsString(), Type(), Valtype()

HB_IsLogical

HB_IsLogical()

Tests if the value returned by an expression is a logical value.

Syntax

      HB_IsLogical( <expression> ) --> lIsLogical

Arguments

<expression> an expression of any data type

Return

.T. (true) if the value returned by <expression> is of data type Logical, otherwise .F. (false) is returned

Description

Function HB_IsLogical() is used to test if a variable contains a logical value or if the result of an expression is of data type Logical. The function can be used as a replacement for the expression: Valtype(<expression>)==”L”.

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsHash(), HB_IsMemo(), HB_IsNIL(), HB_IsNull(), HB_IsNumeric(), HB_IsObject(), HB_IsPointer(), HB_IsString(), Type(), Valtype()

HB_IsHash

HB_IsHash()

Tests if the value returned by an expression is a Hash.

Syntax

      HB_IsHash( <expression> ) --> lIsHash

Arguments

<expression> This is an expression of any data type

Return

.T. (true) if the value returned by <expression> is of data type Hash, otherwise .F. (false) is returned.

Description

HB_IsHash() is used to test if a variable contains a hash value or if the result of an expression is of data type Hash. The function can be used as a replacement for the expression: Valtype(<expression>)==”H”.

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsLogical(), HB_IsMemo(), HB_IsNIL(), HB_IsNull(), HB_IsNumeric(), HB_IsObject(), HB_IsPointer(), HB_IsString(), Type(), Valtype()

HB_IsDateTime

HB_IsDateTime()

Tests if the value returned by an expression is a DateTime value

Syntax

      HB_IsDateTime( <expression> ) --> lIsDateTime

Arguments

<expression> an expression of any data type

Return

.T. (true) if the value returned by <expression> is a DateTime value, otherwise .F. (false) is returned.

Description

HB_IsDateTime() is used to test if a variable contains a DateTime value or if the result of an expression is a DateTime value. The function is the only way to distinguish a DateTime value from a Date value, since Valtype(<expression>) yields “D” for both, Date and DateTime.

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsHash(), HB_IsLogical(), HB_IsMemo(), HB_IsNIL(), HB_IsNull(), HB_IsNumeric(), HB_IsObject(), HB_IsPointer(), HB_IsString(), Type(), Valtype()