API Reference > OdDb Classes > OdDbText Class > OdDbText Methods > OdDbText::setField Method
OdDbText::setField Method
Syntax
C++
OdDbObjectId setField(const OdString& fieldName, OdDbField* pField);
Parameters 
Description 
const OdString& fieldName 
[in] Name (key) for the new entry.  
OdDbField* pField 
[in] Pointer to the field object. 

Returns the Object ID of the new entry.

Adds the specified field to the field dictionary of this object. 

 

Copyright © 2002–2021. Open Design Alliance. All rights reserved.