Attribute Functions

The following table lists attribute functions. See also Functions.

Function Description

XAIsClass (classname)

Returns TRUE if the current object belongs to the class classname including subclasses.

For example:

XAIsClass (""Car"") 

returns TRUE for Honda Accord.

GetXAVal (attributename)

Returns the value for the specified string-type attribute for the current object if any.

For example:

GetXAVal (""Seat Type"") 

returns leather for a luxury car with leather seats.

GetXAValAsInt (attributename)

Returns the value for the specified integer-type attribute for the current object if any.

For example:

GetXAValAsInt (""Doors"") 

returns 4 for a four-door sedan.

GetXAValAsNum (attributename)

Returns the value for the specified number-type attribute for the current object if any.

For example:

GetXAValAsNum (""Doors"") 

returns 4 for a four-door sedan.

GetXAValAsDate (attributename)

Returns the value for the specified date-type attribute for the current object if any.

For example:

GetXAValAsDate (""Release Date"") 

returns the release date attribute for the row as date.