Example #1
0
        /******************************************************************************/
        /// <summary>
        /// Erases an entire section of an INI file.
        /// </summary>
        /// <param name="Section">Section identifies the INI file section to remove.</param>

        public void EraseSection(string Section)
        {
            int      i;
            TStrings Strings;

            i = FSections.IndexOf(Section);

            if (i >= 0)
            {
                Strings = (FSections.GetObject(i) as TStrings);
                Strings.Clear();

                //delete Strings;

                FSections.Delete(i);
            }
            ;
        }