xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

HB_IsNumeric()

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

Syntax

HB_IsNumeric( <expression> ) --> lIsNumeric

Arguments

<expression>
This is an expression of any data type.

Return

The function returns .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".

Info

See also: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()
Category: Debug functions , Logical functions , xHarbour extensions
Source:rtl\valtype.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe