// ========================== ExprResult AddExpression::Concatenate // ========================== ( ExprResult& left, ExprResult& right ) const { // Create a result. ExprResult result( m_strPrecision ); // Convert both operands to type STRING. left.ConvertToString(); right.ConvertToString(); // Set the result value to the concatenation of the string values // of the left and right operand. result.SetValue( left.GetValue() + right.GetValue() ); // Set the result type to STRING, and its status to OK. result.SetType( ExprResult::STRING ); result.SetStatus( ExprResult::OK ); return result; }