SolFSStorage.GetTagName method


Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStorage     See also    


Returns name of the global tag.


    procedure GetTagName( Index : integer; var TagID : Word; var TagValueType : Word; var TagName : TSolFSString );

[Plain C]
    long _stdcall StorageGetTagName( Handle Storage, LongWord Index, Word *TagID, Word *TagValueType, PWideChar TagNameBuffer, LongWord *TagNameBufferSize );

[C++ (DLL/Lib)]
    void StorageGetTagName( int Index, unsigned short &TagID, SolFSTagValueType &TagValueType, PWideChar &TagName );

[C++ (VCL)]
    void __fastcall GetTagName( int Index, Word &TagID, Word &TagValueType, TSolFSString &TagName );

[C++ (.NET)]
    void StorageGetTagName( int Index, [Out] int *tagID, [Out] SolFSTagValueType *tagValueType, String *tagName );

    void GetTagName( int Index, out int tagID, out CBFSStorage.SolFSTagValueType tagValueType, string tagName );

    Sub GetTagName( ByVal Index As Integer, ByRef tagID As Integer, ByRef tagValueType As CBFSStorage.SolFSTagValueType, ByVal tagName As String )

    String getTagName(int index);


  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • TagNameBuffer - buffer which will contain tag name
  • TagNameBufferSize - size of the tag name buffer
  • Index - index of the name
  • TagID - tag unique ID, must be in range of [0x8000..0xCFFF].
  • TagValueType - specifies data type of the tag value.
  • TagName - tag name.

Possible tag types:

Return value

     [Plain C]  0 if the function succeeded or one of Error codes if the function failed.


Use this method to get information about global named tag. Use GetTagNamesCount function to obtain total number of named tags.

See also

AddTagName     DeleteTagName     GetTagNamesCount