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

HB_IsDate

HB_IsDate()

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

Syntax

      HB_IsDate( <expression> ) --> lIsDate

Arguments

<expression> an expression of any data type

Return

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

Description

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

Seealso

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

HB_IsByRef

HB_IsByRef

Tests if a parameter is passed by reference.

Syntax

      HB_IsByRef( @<variable> ) --> lIsByReference

Arguments

@<variable> <variable> is the symbolic name of any parameter passed to a function, method or procedure

Return

.T. (true) if the variable <variable> is passed by reference, otherwise .F. (false) is returned.

Description

Function HB_IsByRef() is used to test if a variable is passed by reference to a function, method or procedure. This requires to pass <variable> by reference to HB_IsByRef(). If <variable> is not passed by reference to HB_IsByRef(), a runtime error is raised.

See also

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