API Reference > Other Classes > OdDgResBuf Class > OdDgResBuf Methods > OdDgResBuf::setString Method
OdDgResBuf::setString Method
Syntax
C++
void setString(const OdString& sValue);
Parameters 
Description 
const OdString& sValue 
[in] String value to be set. 

Sets the data content of the ResBuf object using the specified String value only if the stored group code has a String type. 

 

This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the String type or Name type.

Example of Entering and Displaying Tagged Data 

Getting and Setting Strings 

Determining the Data Type by Group Code 

OdResBuf::getString(), OdResBuf::setRestype(), OdDxfCode::_getType() methods

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