IgetAttributeType()

Retrieves the type of the attribute.

Syntax

long IgetAttributeType(string attributeName); 

Parameters

attributeName
The name of the attribute whose type is returned.

Return Values

An integer to indicate the data type of the specified attribute in the business object, as follows:

0
Object
1
boolean
2
int
3
float
4
double
5
string
6
date
7
longtext

Exceptions

IInvalidAttributeNameException
Thrown when the attribute name is invalid.

Example

String attributeName = "Name";
long attributeType = 0;
attributeType = aBusObj.IgetAttributeType(attributeName);

Copyright IBM Corp. 2004, 2005