PreviousActiveX Controls Guide (v10) Next

DdfClearFields

Chapter contents

Applies to:

VAccess

Description

Clears the field information in the VAccess memory image (and optionally in the DDF) for the current table.

Syntax

object. DdfClearFields

The DdfClearFields method syntax has this part:

Part
Description
object
Required. The name of a valid VAccess control.

Return Value

DdfClearFields returns a two-byte integer that holds the status of the VAccess control. If this is zero, the operation completed successfully.

Remarks

DdfClearFields always destroys the current field information in the VAccess memory image. If RefreshLocations is True, it will also delete all field information for the current table in FIELD.DDF. A by-product of this will be that INDEX.DDF will no longer be able to get correct field information, so for practical purposes, all of the metadata for the table will be destroyed if this occurs. It is highly recommended that RefreshLocations be set to False before invoking this method.

See Also

FieldList, RefreshLocations, DdfTransactionMode


Chapter contents
Book contents

Prev topic: DdfAddTableName
Next topic: DdfClearIndexes