setNewValue method

void setNewValue(
  1. String newString,
  2. ClipProc proc,
  3. ClipParam param
)

Implementation

void setNewValue( String newString, ClipProc proc, ClipParam param ){
	switch( _code ){
	case ClipGlobal.codeGlobalArray:
		param = ClipProc.globalParam();
		// そのまま下に流す
		continue caseClipGlobalCodeArray;
	caseClipGlobalCodeArray:
	case ClipGlobal.codeArray:
	case ClipGlobal.codeAutoArray:
		proc.strSet( param.array(), proc.arrayIndexDirect( param, _code, _token ), newString );
		break;
	default:
		MathValue value = MathValue();
		if( ClipProc._procToken.stringToValue( param, newString, value ) ){
			ParamBoolean moveFlag = ParamBoolean();
			int index = proc.varIndexDirectMove( param, _code, _token, moveFlag );
			param.setVal( index, value, moveFlag.val() );
		}
		break;
	}
}