Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

GetAttributeType

Use this function to identify the attribute value type of a specified attribute. The type is returned as a string.

Possible return values include the following:

  • DATE
  • DOUBLE
  • INTEGER
  • STRING
  • SYMBOL
  • DATELIST
  • DOUBLELIST
  • INTEGERLIST
  • STRINGLIST
  • SYMBOLLIST
Copy

Syntax

GetAttributeType( "AttrClass", "AttrName" )         

where:

  • AttrClass is the Attribute class. Select from the following:

    AttrClass

    Description

    SYSTEM

    Describes the entire system at the highest level. Attributes of this Attribute class specify system-wide characteristics.

    USER

    Describes the Attributes of a particular user.

    SYMBOL

    Describes the characteristics of individual symbols.

  • AttrName is the name of the attribute whose type you wish to retrieve.
Copy

Syntax example

SET VARIABLE attrType = GetAttributeType( "SYSTEM", "ASReportingPeriod")        

Published:

GetAttributeType

Use this function to identify the attribute value type of a specified attribute. The type is returned as a string.

Possible return values include the following:

  • DATE
  • DOUBLE
  • INTEGER
  • STRING
  • SYMBOL
  • DATELIST
  • DOUBLELIST
  • INTEGERLIST
  • STRINGLIST
  • SYMBOLLIST
Copy

Syntax

GetAttributeType( "AttrClass", "AttrName" )         

where:

  • AttrClass is the Attribute class. Select from the following:

    AttrClass

    Description

    SYSTEM

    Describes the entire system at the highest level. Attributes of this Attribute class specify system-wide characteristics.

    USER

    Describes the Attributes of a particular user.

    SYMBOL

    Describes the characteristics of individual symbols.

  • AttrName is the name of the attribute whose type you wish to retrieve.
Copy

Syntax example

SET VARIABLE attrType = GetAttributeType( "SYSTEM", "ASReportingPeriod")        

For an optimal Community experience, Please view on Desktop