CS 2018R2 - Check if Variable Tag is also in trend table

Hi,

Do we have an "easy" way to check if a variable tag is also defined in the trend table?

I've been looking through the help file and it seems TrnBrowse functions would be way to perform the search. Before I implement I just want to check if there was another option as well. 

Thanks for any input,

Rune

Parents
  • How about TrnInfo()? It returns a few different trend properties, or an empty string if the trend doesn't exist. Here's an example function using it to check if a trend tag exists:

    //Returns TRUE if the specified trend tag exists
    INT FUNCTION TrnExists(STRING sTag)
    	RETURN TrnInfo(sTag, 1) <> "";
    END

Reply
  • How about TrnInfo()? It returns a few different trend properties, or an empty string if the trend doesn't exist. Here's an example function using it to check if a trend tag exists:

    //Returns TRUE if the specified trend tag exists
    INT FUNCTION TrnExists(STRING sTag)
    	RETURN TrnInfo(sTag, 1) <> "";
    END

Children
No Data