API Reference > OdDb Classes > OdDbField Class > OdDbField Methods > OdDbField::evaluate Method
OdDbField::evaluate Method
Syntax
C++
OdResult evaluate(int nContext, OdDbDatabase* pDb = 0, int* pNumFound = 0, int* pNumEvaluated = 0);
Parameters 
Description 
int nContext 
[in] Context in which the field is evaluated; the context flag can be one of the  
OdDbDatabase* pDb = 0 
[in] Database to be used for the evaluation; can be null.  
int* pNumFound = 0 
[out] Pointer to receive the number of fields evaluated; can be null if not required.  
int* pNumEvaluated = 0 
[out] Pointer to receive the number of fields evaluated; can be null if this information is not required. 
predefined 
OdDbField::EvalContext enum flags or a user-defined context flag.  

Returns the evaluated Field object.

After creating a field object and setting the field code, call this method to evaluate the field. If pDb is null, the field's database will be used if the field is a database resident. If it is null and the field is not a database resident, evaluation will fail if the field requires a database. 

 

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