AFIELDS( ) Function

Retrieves and stores information about the structure of the table in a specified work area, specified by a table alias, or in the currently selected work area in an array and returns the number of fields in the table.

AFIELDS( ArrayName [, nWorkArea | cTableAlias ] )

Parameters

ArrayName

Specifies an array to store information about the table structure.

If the array you specify does not exist, Visual FoxPro automatically creates it. If the array exists and is not large enough to contain all the information returned by AFIELDS( ), the size of the array is automatically increased to accommodate the information.

nWorkArea

Specifies the work area of the table.

cTableAlias

Specifies a table alias.

If you omit nWorkArea and cTableAlias, AFIELDS( ) retrieves information for the table in the currently selected work area.

Expand imageReturn Value

Expand imageRemarks

Expand imageExample

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic