xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

FieldDec()

Retrieves the number of decimal places of a field variable.

Syntax

FieldDec( <nFieldPos> ) --> nDecimalPlaces

Arguments

<nFieldPos>
A numeric value specifying the ordinal position of the field variable to query. Valid values are in the range from 1 to FCount().

Return

The function returns a numeric value indicating the number of decimal places of the specified field variable.

Description

FieldDec() retrieves a particular information available for field variables: the number of decimal places. This is only relevant for field variables of Numeric data type. All other field variables have no decimal places.

Info

See also:DbFieldInfo(), DbStruct(), FieldLen(), FieldName(), FieldType()
Category: Field functions , xHarbour extensions
Source:rdd\dbcmd.c
LIB:xhb.lib
DLL:xhbdll.dll


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