xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

FieldLen()

Retrieves the number of bytes occupied by a field variable.

Syntax

FieldLen( <nFieldPos> ) --> nFieldLength

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 bytes the specified field variable occupies in one record of the database file.

Description

FieldLen() retrieves a particular information available for field variables: the number of bytes required to store the field variable in a database record. Note that the value of memo fields is stored in a separate file. A memo field variable occupies 4 or 10 bytes in a database record, depending on the RDD used.

Info

See also:DbFieldInfo(), DbStruct(), FieldDec(), 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