JCL Help:RegSaveList

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Saves a stringlist to the registry.


Pascal

 function RegSaveList(const RootKey: DelphiHKEY; const Key: string; const ListName: string; const Items: TStrings): Boolean;


Parameters

Parameters Description
const RootKey: DelphiHKEY The rootkey to write the list to, one of the HKEY_XXX constants.
const Key: string The key (path) to write the list to, relative to RootKey.
const ListName: string Name of the subkey relative to Key to write the list to.
const Items: TStrings List of the items to store in the registry.


Return Value

The function returns True if the key "RootKeyKeyListName" could be created False otherwise.


Description

The list of strings is saved in the registry as under the key "RootKeyKeyListName" with each string stored as registry value named "1", "2", etc. The number of items in the list is stored as DWORD value 'Items'.


See Also

RegLoadList


About

Unit

JclRegistry


Donator

Robert Marquardt


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page