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

GetType

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

Possible return values include the following:

  • NUM
  • STRING
  • RANGE
  • NUMLIST
  • STRINGLIST
  • OBJECT
  • OBJECTLIST

For more information on variables, see Create Variable.

Syntax:

GETTYPE ("VariableName")

where:

  • VariableName is the name of the variable whose type you would like to identify.

Syntax example:

Create Variable nCount as NUM

Create Variable sType as STRING

Set Variable sType = GETTYPE("nCount")

Show Message "The variable nCount is of type $sType$"

Syntax example:

Create Variable oEmployee as Object

Create Property oEmployee.ID as Num

Set Variable propType = GETTYPE (oEmployee)

Set Variable propType = GETTYPE (oEmployee.ID)

Show Message "The property oEmployee.ID is of type $sType$"

Published:

GetType

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

Possible return values include the following:

  • NUM
  • STRING
  • RANGE
  • NUMLIST
  • STRINGLIST
  • OBJECT
  • OBJECTLIST

For more information on variables, see Create Variable.

Syntax:

GETTYPE ("VariableName")

where:

  • VariableName is the name of the variable whose type you would like to identify.

Syntax example:

Create Variable nCount as NUM

Create Variable sType as STRING

Set Variable sType = GETTYPE("nCount")

Show Message "The variable nCount is of type $sType$"

Syntax example:

Create Variable oEmployee as Object

Create Property oEmployee.ID as Num

Set Variable propType = GETTYPE (oEmployee)

Set Variable propType = GETTYPE (oEmployee.ID)

Show Message "The property oEmployee.ID is of type $sType$"

For an optimal Community experience, Please view on Desktop