SolFSStorage.AddTagName method


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

SolFSStorage     See also    


Adds a global named tag.


    procedure AddTagName( TagID : Word; TagValueType : Word; const TagName : TSolFSString );
    type TSolFSString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[Plain C]
    long _stdcall StorageAddTagName( Handle Storage, Word TagID, Word TagValueType, PWideChar TagName );

[C++ (DLL/Lib)]
    void AddTagName( unsigned short TagID, SolFSTagValueType TagValueType, const PWideChar TagName );

[C++ (VCL)]
    void __fastcall AddTagName( Word TagID, Word TagValueType, const TSolFSString TagName );

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

    void AddTagName( int tagID, CBFSStorage.SolFSTagValueType tagValueType, string tagName );

    Sub AddTagName( ByVal tagID As Integer, ByVal tagValueType As CBFSStorage.SolFSTagValueType, ByVal tagName As String )

    void addTagName( int tagID, TagTypes tagValueType, String tagName);


  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • TagID - tag unique ID, must be in range of [0x8000..0xCFFF]
  • TagValueType - Specifies data type of the tag value
  • TagName - Name of the tag

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 create a global named tag and set it's data type. TagID can be set to 0 - in this case CBFS Storage will choose an ID automatically.

See also

DeleteTagName     GetTagName