RDD

FCount()

Return the number of fields in the current database file

Syntax

Signature
FCount() --> nFields

Arguments

None.

Return value

Number of fields in the current work area.

Description

FCount() returns the number of fields in the structure of the current work area.

Notes

With no open area it returns zero.

Example

FCount.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   QOut( "Fields: " + LTrim( Str( FCount() ) ) )
   DbCloseArea()

RETURN

Output

See also