GetTagType

The GetTagType methods retrieves the internal data storage type for the specified tag name.

LONG GetTagType(
  BSTR TagName // Tag name to return storage type for
)


Parameters:
TagName TagName to return type for.

Return Values:
Value Meaning
0 Type is unknown
1 String
2 Integer
3 Handle
4 Pointer
5 Schedule Data
6 Tag Id
4096 Function Call
4097 Function Response
32767 Byte Block
-1 Tag handle is invalid

Example:
var TagInfo;

TagInfo = "Tag data type is " + CAS.GetTagType("SUBJECT") + "\r\n";

The contents of TagInfo will be:

Tag data type is 1


See Also:
CAS GetTag, CAS GetTagName