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_IsRegExString

HB_IsRegExString()

Checks if a character string is a compiled regular expression.

Syntax

      HB_IsRegExString( <cString> ) --> lIsRegExComp

Arguments

<cString> is a character string to test

Return

.T. (true) if the passed string is a compiled regular expression, otherwise .F. (false) is returned.

Description

All regular expression functions and operators can process character strings containing literal regular expressions or compiled regular expressions. A literal regular expression can be compiled with HB_RegExComp() to speed up pattern matching. HB_IsRegExString() detects if a character string is a compiled regular expression.

Seealso

HB_RegEx()

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_IsNumeric

HB_IsNumeric()

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

Syntax

      HB_IsNumeric( <expression> ) --> lIsNumeric

Arguments

<expression> an expression of any data type

Return

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

Description

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

Seealso

HB_IsArray(), HB_IsBlock(), HB_IsByRef(), HB_IsDate(), HB_IsLogical(), HB_IsHash(), HB_IsMemo(), HB_IsNIL(), HB_IsNull(), HB_IsObject(), 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()