hi does anyone know how I can rename an INI Selection for example if I had an INI File like:
[Main]
WindowState=1
Left=2
[Test]
Width=8
Style=5
how can I rename [Test] to something like [Border]
Thanks.
Printable View
hi does anyone know how I can rename an INI Selection for example if I had an INI File like:
[Main]
WindowState=1
Left=2
[Test]
Width=8
Style=5
how can I rename [Test] to something like [Border]
Thanks.
Create new section and ignore original ... perhaps.
well I chould do that but it's not really the ideal solution just by creating a new seelction because that whould mean the old selection will still be there with the old values.
I don't think this function is provided by the API. You would probably have to write your own. I could be wrong though...I've only used the API a few times and never tried what you're doing.
Thanks DigiRev, I sorted it now I did as you said and it now working perfect only took about 6 lines of code in the end,
thanks agian.