Retrieve a list all the key names in a single section of the specified INI file.


First available in version 3.0 build 2039.

Input Parameters:

path - A fully qualified path to the INI file. This parameter supports monikers.

section - Name of the section that contains the desired key names.

defaultValue - [Optional] - If no keys are found in the specified section, this value will be returned in 'Result'. You should use a defaultValue that is different from what you expect to be returned (to help identify retrieval problems).

delimiter - [Optional] - A single character (or string) that will be used to separate keys in the results. Default value is ,.

Output Parameters:

result - A delimited list of keys from the specified section of the INI file, or the supplied defaultValue.

Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.INIFile.enumKeys( paramsObject [, callbackParamsObject] [, errorParamsObject] );

Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.INIFile.enumKeys( paramsObject );


You can use this function with INIFile.enumSections to read the contents of any INI file without knowing what sections and keys are in it ahead of time.



var return_obj = ssCore.INIFile.enumKeys({path:"startdir://settings.ini", section:"Window", defaultValue:"?"});