- TagNbr
- The tag number of the tag to set.
- TagType
A long expression evaluating to the tag type to set.
-
TAG_BYTE (1) - Byte
-
TAG_ASCII (2) - Ascii character
-
TAG_SHORT (3) Short
-
TAG_LONG (4) Long
-
TAG_RATIONAL (5) Rational
-
TAG_SBYTE (6) Signed byte
-
TAG_UNDEFINE (7) 8 bit byte
-
TAG_SSHORT (8) Signed Short
-
TAG_SLONG (9) Signed Long
-
TAG_SRATIONAL (10) Signed Rational
-
TAG_FLOAT (11) Float (4 Bytes)
-
TAG_DOUBLE (12) Double (8 bytes)
-
- hData
- A long expression evaluating to a Global Handle which contains the tag data.
If the specified tag does not exist, the method will create the tag and set its data to the data contained in the hData Global Handle. If the specified tag exists, it will be replaced. It is best to use this method when setting a large block of data.
If you have a pointer to the data, use the TagSetDataPtr method.
Note: Available in Professional Edition.