setfloatValue()
Sets the value of a float attribute
to a specified value, given the attribute's name or its
position in the business object's attribute list.
Syntax
public void setfloatValue(String attrName, float newVal);
public void setfloatValue(int position, float newVal);
Parameters
- attrName
- Is the name of the attribute whose value you want to set.
- position
- Is an integer that specifies the ordinal position of the attribute
in the business object's attribute list.
- newVal
- Is the float value to assign to the attribute.
Return values
Exceptions
- AttributeNotFoundException
- Thrown if the position or name specified is not valid for
the definition of this business object.
- AttributeValueException
- Thrown if the value passed in is not a valid value for the
particular attribute.
- WrongAttributeException
- Thrown if the value is being set on a non-float attribute.
Notes
If the connector-specific property MaxFloatPrecision has been set, the setfloatValue() method uses this rather than the default locale precision
to specify the precision of the input value.
See also
getDefaultfloat(),, getfloatValue(),, setbooleanValue(),, setBusObjValue(),, setdoubleValue(),, setintValue(),, setLongTextValue(),, setStringValue()
