Compartir a través de


CDaoTableDef::DeleteField

Call this member function to remove a field and make it inaccessible.

void DeleteField( 
   LPCTSTR lpszName  
); 
void DeleteField( 
   int nIndex  
);

Parameters

  • lpszName
    A pointer to a string expression that is the name of an existing field.

  • nIndex
    The index of the field in the table's zero-based Fields collection, for lookup by index.

Remarks

You can use this member function on a new object that has not been appended to the database or when CanUpdate returns nonzero.

For related information, see the topic "Delete Method" in DAO Help.

Requirements

Header: afxdao.h

See Also

Reference

CDaoTableDef Class

Hierarchy Chart

CDaoTableDef::CreateField

CDaoTableDef::CreateIndex

CDaoTableDef::DeleteIndex