API Reference > OdDb Classes > OdDbTable Class > OdDbTable Methods > setValue Method > OdDbTable::setValue Method (OdInt32, OdInt32, OdInt32, OdString, OdValue::ParseOption)
OdDbTable::setValue Method (OdInt32, OdInt32, OdInt32, OdString, OdValue::ParseOption)
Syntax
C++
void setValue(OdInt32 row, OdInt32 col, OdInt32 nContent, OdString sText, OdValue::ParseOption nOption);
Parameters 
Description 
OdInt32 row 
[in] Row index of the cell.  
OdInt32 col 
[in] Column index of the cell.  
OdInt32 nContent 
[in] Number of content.  
OdString sText 
[in] Text of the value.  
OdValue::ParseOption nOption 
[in] Parse option of the value. 

Sets a value to the cell. 

 

Parse option is the enumeration and takes one of the following values: 

 

Name 
Value 
kParseOptionNone 
0x00 
kSetDefaultFormat 
0x01 
kPreserveMtextFormat 
0x02 
kConvertTextToValue 
0x04 
kChangeDataType 
0x08 
kParseTextForFieldCode 
0x10 

 

Method generates the eInvalidInput exception when the input row number and column number are less than 0 or greater than the table size.

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