Skip to main content

Key-Enumeration

Command Description

Enumerate all the keys in a given section of the INI config file

Command Prototype

dictRet = INI.EnumKey(sFile, sSection)

Parameter Description

ParameterRequiredTypeDefaultDescription
sFileTruepath'''C:\Users'''The path of the INI file
sSectionTruestring""Name of the section of the .ini file

return

dictRet,The variable used to save the output of the command.

Demo

/************************************Enumeration keys*********** **************************** 
Command prototype:
dictRet = INI.EnumKey('''C:\Users''', "")
Input parameters:
sFile--path where the INI configuration file is located
sSection--name of the section to access the INI configuration file
Outgoing parameters:
dictRet--the result after the command is run
********************************************************************************/
Dim sFile='''C:\Users\Chance\Desktop\testINI\data.ini'''
Dim sSection="RPA"
dictRet = INI.EnumKey(sFile,sSection)
TracePrint(dictRet)