HexEdit/CalcDlg.cpp
void CCalcDlg::save_value_to_macro(CString ss /*= CString()*/)
{
	if (ss.IsEmpty())
		ss = current_str_;

	if (source_ == km_user_str && state_ >= CALCINTEXPR)
		aa_->SaveToMacro(km_expression, ss);
	else if (source_ == km_user_str)
		aa_->SaveToMacro(km_user_str, ss);
	else if (source_ != km_result)
		aa_->SaveToMacro(source_);

	source_ = km_result;   // ensure it is not saved again
}
// Save a calculator value to the current macro
// If a value (ss) is specified save it else save the current calc value as a string

Save a calculator value to the current macro
If a value (ss) is specified save it else save the current calc value as a string
Save a calculator value to the current macro If a value ( ss ) is specified save it else save the current calc value as a string
void CCalcDlg::save_value_to_macro(CString ss )
{
	if (ss.IsEmpty())
		ss = current_str_;
	if (source_ == km_user_str && state_ >= CALCINTEXPR)
		aa_->SaveToMacro(km_expression, ss);
	else if (source_ == km_user_str)
		aa_->SaveToMacro(km_user_str, ss);
	else if (source_ != km_result)
		aa_->SaveToMacro(source_);
	source_ = km_result;   
}
void CCalcDlg :: save_value_to_macro ( CString ss ) { if ( ss . IsEmpty ( ) ) ss = current_str_ ; if ( source_ == km_user_str && state_ >= CALCINTEXPR ) aa_ -> SaveToMacro ( km_expression , ss ) ; else if ( source_ == km_user_str ) aa_ -> SaveToMacro ( km_user_str , ss ) ; else if ( source_ != km_result ) aa_ -> SaveToMacro ( source_ ) ; source_ = km_result ; }
Save a calculator value to the current macro
If a value (ss) is specified save it else save the current calc value as a string
Save a calculator value to the current macro If a value ( ss ) is specified save it else save the current calc value as a string
/*= CString()*/ // ensure it is not saved again
