Can I get the custom field or comment of variable tags?

I want to get the comment or custom field of variable tags.

I used the 16 type of taginfo function and "custom1" of taggetproperty function.

Neither method displayed anything.

Please tell me how to display it with the comment or custom field of variable tag.

<Added>

- Genie 

- Super Genie

  • Hi!

    TagInfoEx should give you that info, could you expand more on how you are using the function? In CiCode, Graphics, etc.
    And if you want to test to get type 0 just to test if it works at all.
    If you want to get the errorcode, look into: The error code can be obtained by calling the IsError Cicode function.
  • Some things for you to check:
    - Did you put your tag name in double quotes?
    - If you use associated tags in pop-ups or super genies, you should use AssInfo or AssGetProperty instead.
    If it still does not work, can you explain how and where you use these functions and what your exact syntax is?
  • Thank you for reply.

    How about super genie using metadata?

    I display data in Super Genie through Genie's metadata.

    Values and symbols are well reflected in metadata tags.

    However, the properties of the tag cannot be retrieved.

    I have attached a picture to the text.
  • Thank you for reply, Patrick.

    How about super genie using metadata?
    I display data in Super Genie through Genie's metadata.

    Values and symbols are well reflected in metadata tags.

    However, the properties of the tag cannot be retrieved.

    I have attached a picture to the text.
  • Thank you for the screenshots. It looks like you just need to remove the question marks from the AssGetProperty command. Instead of:

    AssGetProperty("?D002?", "Custom1")

    You should have:

    AssGetProperty("D002", "Custom1")

    The AssGetProperty help page is confusing to understand because there are 3 different ways to associate tags with super genies: numbered associations (the old method), named associations (which you are using), and partial associations (where you can associate the device name one time instead of each individual variable). Each one has a different syntax.
  • Also, in your original question you mention 'the custom field'. I'm aware that variable.dbf also contains a column called 'CUSTOM' in addition to the 'CUSTOM1' to 'CUSTOM8' columns. This CUSTOM field is a deprecated property and cannot be used in Citect as far as I know.