FileSection Object Methods

Applies to TestComplete 15.63, last modified on April 23, 2024

The FileSection object contains the following methods:

Method List

Name Description
Clear Deletes all subsections and options from the current section.
DeleteSubSection Deletes a subsection from the current section.
DeleteSubSectionByIndex Deletes a subsection specified by its index from the current section.
GetOption Returns the value of an option in the current section.
GetOptionByIndex Returns the value of an option specified by its index.
GetOptionName Returns the name of an option in the current section.
GetOptionNames Returns the names of all options in the current section.
GetSectionName Returns the name of a subsection in the current section.
GetSectionNames Returns the names of all subsections in the current section.
GetSubSection Returns the Section object for a subsection of the current section.
GetSubSectionByIndex Returns the Section object for a subsection specified by its index.
OptionExists Obtains whether an option belongs to the option list of the current section.
RemoveOption Deletes an option from the current section.
RemoveOptionByIndex Deletes an option specified by its index from the current section.
Save Saves options to the file for which the FileSection object was created.
SaveAs Saves options to the specified file.
SetOption Sets a new value for an option of the current section.
SetOptionByIndex Sets a new value for an option specified by its index.
SubSectionExists Obtains whether a section belongs to the subsection list of the current section.

See Also

FileSection Object

Highlight search results