RDD

DbFieldInfo()

Return information about a field

Syntax

Signature
DbFieldInfo( nInfoType, nFieldPos, [expNewSetting] ) --> uCurrentSetting

Arguments

nInfoType

Information selector. nFieldPos One-based field position.

expNewSetting

Optional new setting; xDev currently exposes read-only information.

Return value

The selected field information.

Description

DbFieldInfo() queries metadata for a field in the current work area. The selector is defined by the active RDD and determines the returned value.

Notes

A work area must be open and the field position must be valid.

Example

DbFieldInfo.prg
PROCEDURE Main()

   DbCreate( "field_info_demo.dbf", { { "NAME", "C", 12, 0 } } )
   DbUseArea( .T., , "field_info_demo.dbf", "People" )
   QOut( "Field info type: " + ValType( DbFieldInfo( 1, 1 ) ) )
   DbCloseArea()
   FErase( "field_info_demo.dbf" )


   RETURN

Output

See also