IgetFloatAttribute()

Retrieves a float value of an attribute.

Syntax

float IgetFloatAttribute(string attributeName);

Parameters

attributeName
The name of the attribute whose float value is retrieved.

Return Values

The float value of the attribute.

Exceptions

IAttributeNotSetException
Thrown when the attribute value is not set.

IInvalidAttributeNameException
Thrown when the attribute name is invalid.

IInvalidAttributeTypeException
Thrown when the attribute is not of the float type.

IAttributeBlankException
Thrown when the attribute has a blank value.

Example

// Call the Float method and get the attribute
float floatValue = 0.0;
String floatAttributeName = "Height";
floatValue = exampleBusObj.IgetFloatAttribute(floatAttributeName);

Copyright IBM Corp. 2004