2022.2

Table Of Contents
enclose the entire string in single quotes. Alternatively, you can escape the double quotes inside the
JSON Array.
For instance, the following calls to AddGroup() are correct:
repoObject.AddGroup("MyGroup",'["FirstKey", "SecondKey"]');
repoObject.AddGroup("MyGroup","[\"FirstKey\", \"SecondKey\"]");
But the following is incorrect:
repoObject.AddGroup("MyGroup","['FirstKey', 'SecondKey']");
Many methods require using the JSONStringArray type but JSON is not natively supported in VB
Script. Therefore, for those methods, only JavaScript sample code is provided. There are many
resources on the Web that propose ways of implementing JSON parsing in VB Script so you can imple-
ment whichever you see fit. However, using JavaScript is highly recommended.
Repository management methods
Name Description
"CheckRepository" on
page152
Verifies the integrity of the repository and recovers unused space left by deleted keysets. Similar to packing a database, the operation is
non-destructive but it does require exclusive access to the Repository. You should therefore only perform this operation when you know
for sure no other process is accessing the Data Repository.
"ClearRepository" on
page153
Deletes all groups, keys and keysets from the repository, returning it to a blank state. Use with caution!
"ClearGroupData" on
page153
Deletes all keysets inside GroupName while retaining the existing key structure.
"ClearAllData" on
page152
Delete all keysets in all groups, while retaining the existing key structure.
"ConnectionString"
on page82
Creates/opens a Repository to read from and write to at a custom location. Set ConnectionString to a string containing a full path
and file name.
"Version" on
page162
Returns the version of the DLL library used by the Repository.
Group methods
Name Description
"AddGroup" on
page150
Creates a group named GroupName and optionally creates keys listed in keyNames. The keyNames parameter may be empty.
"ListGroups" on
page155
Retrieves the list of all group names in the Repository, stored in a JSONStringArray..
"RemoveGroup" on
page157
Deletes the group named GroupName, along with all its keysets and keys.
"RenameGroup"
on page159
Renames group oldName to newName. While this operation has no impact on the data stored in the specified group, it does
require any plugin and/or script that uses oldName to be modified to refer to newName.
Page 148