EldoS | Feel safer!

Software components for data protection, secure storage and transfer


Posted: 12/13/2012 17:22:30
by Bhushan Manekar (Premium support level)
Joined: 07/18/2012
Posts: 10


Is it possible to add tags to directories? When I call the following two lines, the latter raises an exception (-24, errInvalidParameter):

Storage.SetFileTagAsNumber(Dirpath,'FID', 0, 1991);

I am setting the TagID = 0 so I reference the tag via its tag name.

Appreciate any advice,


(Delphi XE3, SolFS 4.5, Win7)
Posted: 12/14/2012 01:44:19
by Alexander Plas (Team)


Yes, it is possible to add tags to directories, you can even add tags to named streams.

The error occurred because you have not added the tag name to the storage, in the other words you haven't declared your tag. You have to call AddTagName method one time per storage before using the tag name. Please refer to the documentation https://www.eldos.com/documentation/so...gname.html . Actually the documentation is a bit incomplete, there is not mentioned that the TagID parameter may have value 0, in this case the system choose the TagID value for given TagName automatically.



Topic viewed 2630 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!